email

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Email

type Email struct {
	// Name of the channel
	Name string `json:"name" yaml:"name" hcl:"name,label"`
	// From field
	From string `json:"from" yaml:"from" hcl:"from"`
	// To field
	To string `json:"to" yaml:"to" hcl:"to"`
	// Cc field
	Cc string `json:"cc" yaml:"cc" hcl:"cc,optional"`
	// Host value
	Host string `json:"host" yaml:"host" hcl:"host"`
	// Port value
	Port string `json:"port" yaml:"port" hcl:"port"`
	// Username value
	Username string `json:"username" yaml:"username" hcl:"username"`
	// Password value
	Password string `json:"password" yaml:"password" hcl:"password"`
	// Secure value
	Secure string `json:"secure" yaml:"secure" hcl:"secure"`
	// Timeout value
	Timeout int  `json:"timeout" yaml:"timeout" hcl:"timeout,optional"`
	Ignore  bool `json:"ignore" yaml:"ignore" hcl:"ignore,optional"`
}

Email configures notifications via email.

func (Email) Validate

func (cfg Email) Validate() error

Validate checks the email configuration.

Jump to

Keyboard shortcuts

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