Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct { Fallback string `json:"fallback"` Color event.StatusColor `json:"color"` Pretext string `json:"pretext"` Title string `json:"title"` Text string `json:"text"` Fields []Field `json:"fields"` }
Attachment is representation of json attachment.
type Field ¶
type Field struct { Title string `json:"title"` Value string `json:"value"` Short bool `json:"short"` }
Field is representation of json field.
type Message ¶
type Message struct { Text string `json:"text"` Attachments []Attachment `json:"attachments"` }
Message is representation of json message.
Click to show internal directories.
Click to hide internal directories.