Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRecipients = errors.New("not sending email, no recipients defined")
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Enabled bool `toml:"enabled"` Host string `toml:"host"` Port int `toml:"port"` Username string `toml:"username"` Password string `toml:"password"` // Whether to skip TLS verify. NoVerify bool `toml:"no-verify"` // Whether all alerts should trigger an email. Global bool `toml:"global"` // From address From string `toml:"from"` // Default To addresses To []string `toml:"to"` // Close connection to SMTP server after idle timeout has elapsed IdleTimeout toml.Duration `toml:"idle-timeout"` }
Click to show internal directories.
Click to hide internal directories.