notifiers

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailNotifier

type EmailNotifier struct {
	// contains filtered or unexported fields
}

func NewEmailNotifier

func NewEmailNotifier(config *EmailNotifierConfig) (*EmailNotifier, error)

func (*EmailNotifier) DispatchNotification

func (notifier *EmailNotifier) DispatchNotification(check *checks.CheckSummary) error

type EmailNotifierConfig

type EmailNotifierConfig struct {
	SMTPServerHost string   `yaml:"smtp_server_host"`
	SMTPServerPort int      `yaml:"smtp_server_port"`
	SMTPUsername   string   `yaml:"smtp_username"`
	SMTPPassword   string   `yaml:"smtp_password"`
	From           string   `yaml:"from"`
	To             []string `yaml:"to"`
}

func (*EmailNotifierConfig) Validate

func (config *EmailNotifierConfig) Validate() error

Jump to

Keyboard shortcuts

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