mailgun

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UID = "mailgun"

Variables

This section is empty.

Functions

func Default

func Default() (*client, error)

func Load

func Load(loader envconfig.LoaderFunc) (*client, error)

func New

func New(opt Options) *client

Types

type Options

type Options struct {
	Domain          string   `json:"domain" envconfig:"DOMAIN" required:"true" form:"mailgun_domain"`
	ApiKey          string   `json:"api_key" envconfig:"API_KEY" required:"true" form:"mailgun_api_key"`
	From            string   `json:"from" envconfig:"FROM" required:"true" form:"mailgun_from"`
	To              []string `json:"to" envconfig:"TO" form:"mailgun_to"`
	DisableTracking bool     `json:"disable_tracking" envconfig:"DISABLE_TRACKING" from:"disable_tracking"`
}

Jump to

Keyboard shortcuts

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