Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Host is the host of the SMTP server.
Host string `mapstructure:"host"`
// Port is the port of the SMTP server.
Port int `mapstructure:"port"`
// User specifies the user name when authenticating to the SMTP server.
User string `mapstructure:"user"`
// Pass specifies the password when authenticating to the SMTP server.
Pass string `mapstructure:"password"`
// From specifies the sender address.
From string `mapstructure:"from"`
// To specifies recipients that receive the alert.
To []string `mapstructure:"to"`
// Enabled indicates whether mail alert sender is enabled.
Enabled bool `mapstructure:"enabled"`
// ContentType represents the email body content type.
ContentType string `mapstructure:"content-type"`
}
Config contains the configuration for the mail alert sender.
Click to show internal directories.
Click to hide internal directories.