providers

package
v0.0.0-...-534333a Latest Latest
Warning

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

Go to latest
Published: May 12, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InternalProviderCount = 0

Functions

This section is empty.

Types

type ErrorProvider

type ErrorProvider struct{}

InternalProvider is a provider written to be used on the testing.

func (ErrorProvider) SendContact

func (ip ErrorProvider) SendContact(con core.Contact) (string, error)

SendContact Implements the Provider interface, this only returns an error! :D.

type InternalProvider

type InternalProvider struct{}

InternalProvider is a provider written to be used on the testing.

func (InternalProvider) SendContact

func (ip InternalProvider) SendContact(con core.Contact) (string, error)

SendContact Implements the Provider interface.

type MandrillProvider

type MandrillProvider struct{}

SlackProvider TODO: Document me!

func (MandrillProvider) SendContact

func (sp MandrillProvider) SendContact(contact core.Contact) (string, error)

SendContact is the implementation of the SendContact function for the Mandril Provider.

type Provider

type Provider interface {
	SendContact(contact core.Contact) (string, error)
}

Provider is a interface build to set a baseline for implementations of different transactional email providers.

type SendgridProvider

type SendgridProvider struct{}

SendgridProvider

func (SendgridProvider) SendContact

func (sp SendgridProvider) SendContact(contact core.Contact) (string, error)

SendContact is the implementation of the SendContact function for the Mandril Provider.

type SlackProvider

type SlackProvider struct{}

SlackProvider TODO: Document me!

func (SlackProvider) SendContact

func (sp SlackProvider) SendContact(contact core.Contact) (string, error)

SendContact is the implementation of the SendContact function for the Slack Provider.

Jump to

Keyboard shortcuts

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