Documentation ¶
Index ¶
Constants ¶
View Source
const (
LoggerDriverID = "logger"
)
View Source
const (
MailgunDriverID = "mailgun"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerDriver ¶
type LoggerDriver struct {
// contains filtered or unexported fields
}
LoggerDriver is a mailer driver that writes mail to logs (for testing use only)
func NewLoggerDriver ¶
func NewLoggerDriver(options map[string]string) (*LoggerDriver, error)
NewLoggerDriver creates a new mailgun driver instance
func (*LoggerDriver) Send ¶
func (md *LoggerDriver) Send(address, subject, body string) error
Send writes a message to the console
type MailgunDriver ¶
type MailgunDriver struct {
// contains filtered or unexported fields
}
MailgunDriver is a mailer driver using the mailgun API
func NewMailgunDriver ¶
func NewMailgunDriver(options map[string]string) (*MailgunDriver, error)
NewMailgunDriver creates a new mailgun driver instance
func (*MailgunDriver) Send ¶
func (md *MailgunDriver) Send(address, subject, body string) error
func (*MailgunDriver) SetTestMode ¶
func (md *MailgunDriver) SetTestMode(m bool)
Click to show internal directories.
Click to hide internal directories.