Documentation ¶
Index ¶
Constants ¶
View Source
const ( TMPL_BODY = `` /* 249-byte string literal not displayed */ TMPL_SUBJECT = `[LOVEBEAT] {{.Current.Name}}-{{.Current.IncidentNbr}}` TMPL_EMAIL = `From: {{.From}} To: {{.To}} Subject: {{.Subject}} MIME-version: 1.0 Content-Type: text/html; charset="UTF-8" {{.Message}}` )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Previous backend.StoredView Current backend.StoredView ServicesInError []backend.StoredService }
type Alerter ¶
type Alerter interface {
Notify(alert Alert)
}
func NewMailAlerter ¶
func NewMailAlerter(cfg *config.ConfigMail) Alerter
func NewWebhooksAlerter ¶
func NewWebhooksAlerter() Alerter
Click to show internal directories.
Click to hide internal directories.