Documentation ¶ Index ¶ type Service type Smtp func NewSmtp(config SmtpConfig) *Smtp func (s *Smtp) Dependencies() []service.Service func (s *Smtp) Name() string func (s *Smtp) Send(to string, subject, body string) error func (s *Smtp) Start() error func (s *Smtp) Stop() error type SmtpConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Service ¶ type Service interface { service.Service Send(to string, subject, body string) error } type Smtp ¶ type Smtp struct { // contains filtered or unexported fields } func NewSmtp ¶ func NewSmtp(config SmtpConfig) *Smtp func (*Smtp) Dependencies ¶ func (s *Smtp) Dependencies() []service.Service func (*Smtp) Name ¶ func (s *Smtp) Name() string func (*Smtp) Send ¶ func (s *Smtp) Send(to string, subject, body string) error func (*Smtp) Start ¶ func (s *Smtp) Start() error func (*Smtp) Stop ¶ func (s *Smtp) Stop() error type SmtpConfig ¶ type SmtpConfig struct { Disabled bool Address string Port int User string Password string FromEmail string } Source Files ¶ View all Source files impl_smtp.go service.go Click to show internal directories. Click to hide internal directories.