Documentation ¶
Index ¶
Constants ¶
View Source
const Type = "slack"
Type should match the package name
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct { Username string `json:"username"` Channel string `json:"channel"` Webhook string `json:"webhook"` }
Notifier consist of all the sub components required to use Slack API
func New ¶
func New(config json.RawMessage) (Notifier, error)
New creates a new Notifier instance based on json config
Click to show internal directories.
Click to hide internal directories.