alert

package
v0.0.0-...-5b2b37d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL