Documentation ¶
Index ¶
- Constants
- Variables
- type Bounce
- type Complaint
- type Event
- type Log
- type Mail
- type Mailgun
- func (mg *Mailgun) Bounces(domain string, limit, skip int) (total int, res []Bounce, err error)
- func (mg *Mailgun) Complaints(domain string, limit, skip int) (total int, res []Complaint, err error)
- func (mg *Mailgun) Logs(domain string, limit, skip int) (total int, res []Log, err error)
- func (mg *Mailgun) Send(m Mail) (msgId string, err error)
- func (mg *Mailgun) Stats(domain string, limit, skip int, events []string, startDate time.Time) (total int, res []Stat, err error)
- type Stat
- type Webhook
Constants ¶
View Source
const ( API_VERSION = 2 API_ENDPOINT = "api.mailgun.net" )
View Source
const MAX_FORM_SIZE = 2 * 1024 * 1024
Variables ¶
View Source
var ( ErrMethodNotAllowed = fmt.Errorf("method not allowed") ErrBadSignature = fmt.Errorf("bad signature") ErrInvalidTimestamp = fmt.Errorf("invalid timestamp") ErrInvalidForm = fmt.Errorf("invalid form data") )
View Source
var EMAIL_DOMAIN_RE = regexp.MustCompile(`[^<>]+<?.+@([^<>]+)>?`)
Functions ¶
This section is empty.
Types ¶
type Bounce ¶
type Complaint ¶
type Log ¶
type Mailgun ¶
type Mailgun struct {
// contains filtered or unexported fields
}
func (*Mailgun) Complaints ¶
type Stat ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.