Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailNotifier ¶
type EmailNotifier struct { }
EmailNotifier is a notifier accountable for e-mailing notifications
func (*EmailNotifier) SendMessage ¶
func (e *EmailNotifier) SendMessage(target string, eventName string, data []byte)
SendMessage sends an event with processed data to a selected email address (target)
type MessageNotifier ¶
MessageNotifier defines our interface that all our notifications need to adhere too, also handy to swap out in test
type SlackNotifier ¶
type SlackNotifier struct {
HookURL string
}
SlackNotifier is a notifier accountable for sending notifications to Slack
func (*SlackNotifier) SendMessage ¶
func (s *SlackNotifier) SendMessage(target string, eventName string, data []byte)
SendMessage sends an event with processed data to a selected Slack channel (target)
type SlackPayload ¶
Click to show internal directories.
Click to hide internal directories.