Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Slack ¶
Slack holds the hook URL
type SlackAttachment ¶
type SlackAttachment struct { Color string `json:"color"` AuthorName string `json:"author_name"` Text string `json:"text"` MrkdwnIn []string `json:"mrkdwn_in"` Fields []SlackField `json:"fields"` }
SlackAttachment holds the markdown message body
type SlackField ¶
type SlackPayload ¶
type SlackPayload struct { Channel string `json:"channel"` Username string `json:"username"` IconUrl string `json:"icon_url"` IconEmoji string `json:"icon_emoji"` Text string `json:"text,omitempty"` Attachments []SlackAttachment `json:"attachments,omitempty"` }
SlackPayload holds the channel and attachments
Click to show internal directories.
Click to hide internal directories.