configuredemail

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailConfig

type EmailConfig struct {
	AwsSecretId       string        `yaml:"aws_secret_id"`
	AwsSecretLifetime time.Duration `yaml:"aws_secret_lifetime"`
	PasswordVariable  string        `yaml:"password_variable"`
	SmtpServer        string        `yaml:"smtp_server"`
	UsernameVariable  string        `yaml:"username_variable"`
}

type EmailManager

type EmailManager interface {
	SendMail(from string, to []string, msg []byte) error
}

func New

func New(config EmailConfig, logger log.DebugLogger) (EmailManager, error)

Jump to

Keyboard shortcuts

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