Documentation ¶
Index ¶
Constants ¶
View Source
const ( OK int = iota Warning Critical Other )
notification status
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶ added in v0.9.0
type Block struct { Type string `json:"type"` *Text `json:"text,omitempty"` Elements []*Element `json:"elements,omitempty"` *Accessory `json:"accessory,omitempty"` }
func (*Block) AddOverflowOption ¶ added in v0.9.0
type Message ¶ added in v0.9.0
type Message struct { Channel string `json:"channel,omitempty"` Text string `json:"text,omitempty"` Blocks []*Block `json:"blocks,omitempty"` }
****************************************************************************** New code for the slack blocks payload, recomended to switch from attachements
func (*Message) AddBlockMsg ¶ added in v0.9.0
func (*Message) AddElements ¶ added in v0.9.0
type Option ¶ added in v0.9.0
type Option struct { *Text `json:"text,omitempty"` // type on this text must always be "plain_text" Value string `json:"value"` }
on an overflow Option you cannot have more than 5 items
type Slack ¶
func (*Slack) NewMessage ¶ added in v0.9.0
func (*Slack) SendMessage ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.