notify: gomodules.xyz/notify/mailgun Index | Files

package mailgun

import "gomodules.xyz/notify/mailgun"

Index

Package Files

mail.go

Constants

const UID = "mailgun"

func Default Uses

func Default() (*client, error)

func Load Uses

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

func New Uses

func New(opt Options) *client

type Options Uses

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"`
}

Package mailgun imports 5 packages (graph) and is imported by 2 packages. Updated 2019-03-08. Refresh now. Tools for package owners.