Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Email *EmailOptions `json:"email"` Slack *SlackOptions `json:"slack"` Opsgenie *OpsgenieOptions `json:"opsgenie"` }
type EmailOptions ¶
type Notification ¶ added in v0.4.0
type Notification struct { Title string `json:"title,omitempty"` Body string `json:"body,omitempty"` Slack *SlackSpecific }
type Notifier ¶
type Notifier interface {
Send(notification Notification, recipient string) error
}
func NewEmailNotifier ¶
func NewEmailNotifier(opts EmailOptions) Notifier
func NewOpsgenieNotifier ¶ added in v0.4.0
func NewOpsgenieNotifier(opts OpsgenieOptions) Notifier
func NewSlackNotifier ¶
func NewSlackNotifier(opts SlackOptions) Notifier
type OpsgenieOptions ¶ added in v0.4.0
type SlackOptions ¶
type SlackSpecific ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.