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
Click to show internal directories.
Click to hide internal directories.