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,omitempty"` Color string `json:"color,omitempty"` Pretext string `json:"pretext,omitempty"` AuthorName string `json:"author_name,omitempty"` AuthorLink string `json:"author_link,omitempty"` AuthorIcon string `json:"author_icon,omitempty"` Title string `json:"title,omitempty"` TitleLink string `json:"title_link,omitempty"` Text string `json:"text,omitempty"` Fields []*Field `json:"fields,omitempty"` ImageURL string `json:"image_url,omitempty"` ThumbURL string `json:"thumb_url,omitempty"` Timestamp int64 `json:"ts,omitempty"` MarkdownIn []string `json:"mrkdwn_in,omitempty"` }
func (*Attachment) AddField ¶
func (a *Attachment) AddField(f *Field)
func (Attachment) IsEmpty ¶
func (a Attachment) IsEmpty() bool
type Field ¶
type Payload ¶
type Payload struct { Channel string `json:"channel,omitempty"` Username string `json:"username,omitempty"` Text string `json:"text,omitempty"` IconEmoji string `json:"icon_emoji,omitempty"` IconURL string `json:"icon_url,omitempty"` Attachments []*Attachment `json:"attachments,omitempty"` }
func (*Payload) AddAttachment ¶
func (p *Payload) AddAttachment(a *Attachment)
Click to show internal directories.
Click to hide internal directories.