Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Disabled ¶
type Disabled struct { }
Disabled is a notifier that doesn't send any notifications
type Notifier ¶
type Notifier interface { Info(header, body string, data map[string]interface{}) Error(header, body string, err error, data map[string]interface{}) }
Notifier an interface for sending notifications
type Options ¶
type Options struct {
Webhook *WebhookOptions
}
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
Webhook is an implementation of Notifier that sends HTML messages to a given URL
func NewWebhook ¶
func NewWebhook(options WebhookOptions, logger *zap.SugaredLogger) *Webhook
type WebhookOptions ¶
Click to show internal directories.
Click to hide internal directories.