Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Channel string WebhookUrl string )
Functions ¶
func NotifyAndCompleted ¶
func NotifyAndCompleted(msg string)
func NotifyAndPanic ¶
func NotifyAndPanic(err error)
func SendErrMsg ¶
func SendGoodMsg ¶
func SendWarnMsg ¶
Types ¶
type Attachment ¶
type Attachment struct {
Fallback string `json:"fallback"`
Color string `json:"color"`
PreText string `json:"pretext"`
AuthorName string `json:"author_name"`
AuthorLink string `json:"author_link"`
AuthorIcon string `json:"author_icon"`
Title string `json:"title"`
TitleLink string `json:"title_link"`
Text string `json:"text"`
ImageUrl string `json:"image_url"`
Fields []*Field `json:"fields"`
Timestamp int64 `json:"ts"`
MarkdownIn []string `json:"mrkdwn_in"`
}
func (*Attachment) AddField ¶
func (attachment *Attachment) AddField(field Field) *Attachment
type Payload ¶
type Payload struct {
Parse string `json:"parse,omitempty"`
Username string `json:"username,omitempty"`
IconUrl string `json:"icon_url,omitempty"`
IconEmoji string `json:"icon_emoji,omitempty"`
Channel string `json:"channel,omitempty"`
Text string `json:"text,omitempty"`
LinkNames string `json:"link_names,omitempty"`
Attachments []Attachment `json:"attachments,omitempty"`
UnfurlLinks bool `json:"unfurl_links,omitempty"`
UnfurlMedia bool `json:"unfurl_media,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.