configuredemail

package
Version: v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 8 Imported by: 3

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)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL