mailer

package
v1.10.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMailer

type IMailer interface {
	SendEmail(msg *gomail.Message) error
	Noop() error
	IsAvailable() bool
	GetFromHeader() string
}

func NewMailer

func NewMailer(config mailerConfig.IMailerConfig) (IMailer, error)

type Mailer

type Mailer struct {
	// contains filtered or unexported fields
}

func (*Mailer) GetFromHeader

func (m *Mailer) GetFromHeader() string

func (*Mailer) IsAvailable

func (m *Mailer) IsAvailable() bool

func (*Mailer) Noop

func (m *Mailer) Noop() error

func (*Mailer) SendEmail

func (m *Mailer) SendEmail(msg *gomail.Message) error

type Mock

type Mock struct {
	mock.Mock
}

func (*Mock) GetFromHeader

func (m *Mock) GetFromHeader() string

func (*Mock) IsAvailable

func (m *Mock) IsAvailable() bool

func (*Mock) Noop

func (m *Mock) Noop() error

func (*Mock) SendEmail

func (m *Mock) SendEmail(msg *gomail.Message) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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