drivers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2018 License: GPL-3.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

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