mail

package
v0.0.0-...-4c3f66c Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GAEMailClientFactory

type GAEMailClientFactory interface {
	New(context.Context) Mail
}

GAEMailClientFactory is gae mail client factory interface.

func GetGAEMailFactory

func GetGAEMailFactory() GAEMailClientFactory

GetGAEMailFactory return gae mail factory.

type GmailClientFactory

type GmailClientFactory interface {
	New(context.Context, *oauth2.Config, string) (Mail, error)
}

GmailClientFactory is gmail client factory interface.

func GetGmailFactory

func GetGmailFactory() GmailClientFactory

GetGmailFactory return gmail factory.

type Mail

type Mail interface {
	Send(string, string, string, string, []string) error
}

Mail is mail interface.

type SendGridClientFactory

type SendGridClientFactory interface {
	New(context.Context, *http.Client, string) Mail
}

SendGridClientFactory is sendgrid client factory interface.

func GetSendGridMailFactory

func GetSendGridMailFactory() SendGridClientFactory

GetSendGridMailFactory return sendgrid mail factory.

Jump to

Keyboard shortcuts

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