Move comments onto their own line

This commit is contained in:
Michael Kaye 2022-04-13 13:31:54 +01:00
parent 79454de54f
commit 2ac7af0c18

View file

@ -80,21 +80,32 @@ type jsonLogEntry struct {
// Stores additional information created during processing of a payload // Stores additional information created during processing of a payload
type genericWebhookPayload struct { type genericWebhookPayload struct {
payload payload
ReportURL string `json:"report_url"` // If a github/gitlab report is generated, this is set. // If a github/gitlab report is generated, this is set.
ListingURL string `json:"listing_url"` // Complete link to the listing URL that contains all uploaded logs ReportURL string `json:"report_url"`
// Complete link to the listing URL that contains all uploaded logs
ListingURL string `json:"listing_url"`
} }
// Stores information about a request made to this server // Stores information about a request made to this server
type payload struct { type payload struct {
ID string `json:"id"` // A unique ID for this payload, generated within this server // A unique ID for this payload, generated within this server
UserText string `json:"user_text"` // A multi-line string containing the user description of the fault. ID string `json:"id"`
AppName string `json:"app"` // A short slug to identify the app making the report // A multi-line string containing the user description of the fault.
Data map[string]string `json:"data"` // Arbitrary data to annotate the report UserText string `json:"user_text"`
Labels []string `json:"labels"` // Short labels to group reports // A short slug to identify the app making the report
Logs []string `json:"logs"` // A list of names of logs recognised by the server AppName string `json:"app"`
LogErrors []string `json:"logErrors"` // Set if there are log parsing errors // Arbitrary data to annotate the report
Files []string `json:"files"` // A list of other files (not logs) uploaded as part of the rageshake Data map[string]string `json:"data"`
FileErrors []string `json:"fileErrors"` // Set if there are file parsing errors // Short labels to group reports
Labels []string `json:"labels"`
// A list of names of logs recognised by the server
Logs []string `json:"logs"`
// Set if there are log parsing errors
LogErrors []string `json:"logErrors"`
// A list of other files (not logs) uploaded as part of the rageshake
Files []string `json:"files"`
// Set if there are file parsing errors
FileErrors []string `json:"fileErrors"`
} }
func (p payload) WriteTo(out io.Writer) { func (p payload) WriteTo(out io.Writer) {