Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
type Notifier struct { MsgChan chan interface{} // contains filtered or unexported fields }
Notifier is the main notifier struct which holds all config items for triggering notifications.
func NewNotifier ¶
func NewNotifier(cfg *config.SlackConfig) (*Notifier, error)
NewNotifier builds a new notifier struct in order to run the nomad-toast notifier task. The message channel is importantly where events are received from the watcher.
Click to show internal directories.
Click to hide internal directories.