mail

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFlags

func AddFlags(flags *pflag.FlagSet)

AddFlags registers persistent flags.

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"`
}

Config contains the configuration for the mail alert sender.

Jump to

Keyboard shortcuts

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