Versions in this module Expand all Collapse all v4 v4.2.2 Sep 22, 2020 Changes in this version + const APIBase + const APIBaseEU + const APIBaseUS + const AccessLevelEveryone + const AccessLevelMembers + const AccessLevelReadOnly + const MailgunGoUserAgent + const MaxNumberOfRecipients + const MaxNumberOfTags + const ResolutionDay + const ResolutionHour + const ResolutionMonth + const SpamActionDelete + const SpamActionDisabled + const SpamActionTag + const TemplateEngineGo + const TemplateEngineHandlebars + const TemplateEngineMustache + const Version + var All *bool = nil + var Debug = false + var ErrEmptyParam = fmt.Errorf("empty or illegal parameter") + var ErrInvalidMessage = errors.New("message not valid") + var EventNames = map[string]func() Event + var Subscribed *bool = &yes + var Unsubscribed *bool = &no + func GetStatusFromErr(err error) int + func TimeToFloat(t time.Time) float64 + type Accepted struct + Incoming int + Outgoing int + Total int + type AccessLevel string + type Bounce struct + Address string + Code string + CreatedAt RFC2822Time + Error string + type BouncesIterator struct + func (ci *BouncesIterator) Err() error + func (ci *BouncesIterator) First(ctx context.Context, items *[]Bounce) bool + func (ci *BouncesIterator) Last(ctx context.Context, items *[]Bounce) bool + func (ci *BouncesIterator) Next(ctx context.Context, items *[]Bounce) bool + func (ci *BouncesIterator) Previous(ctx context.Context, items *[]Bounce) bool + type BufferAttachment struct + Buffer []byte + Filename string + type Complaint struct + Address string + Count int + CreatedAt RFC2822Time + type ComplaintsIterator struct + func (ci *ComplaintsIterator) Err() error + func (ci *ComplaintsIterator) First(ctx context.Context, items *[]Complaint) bool + func (ci *ComplaintsIterator) Last(ctx context.Context, items *[]Complaint) bool + func (ci *ComplaintsIterator) Next(ctx context.Context, items *[]Complaint) bool + func (ci *ComplaintsIterator) Previous(ctx context.Context, items *[]Complaint) bool + type CreateDomainOptions struct + DKIMKeySize int + ForceDKIMAuthority bool + IPS []string + Password string + SpamAction SpamAction + Wildcard bool + type Credential struct + CreatedAt RFC2822Time + Login string + Password string + type CredentialsIterator struct + func (ri *CredentialsIterator) Err() error + func (ri *CredentialsIterator) First(ctx context.Context, items *[]Credential) bool + func (ri *CredentialsIterator) Last(ctx context.Context, items *[]Credential) bool + func (ri *CredentialsIterator) Next(ctx context.Context, items *[]Credential) bool + func (ri *CredentialsIterator) Offset() int + func (ri *CredentialsIterator) Previous(ctx context.Context, items *[]Credential) bool + type DNSRecord struct + Name string + Priority string + RecordType string + Valid string + Value string + type Delivered struct + Http int + Smtp int + Total int + type Domain struct + CreatedAt RFC2822Time + Name string + SMTPLogin string + SMTPPassword string + SpamAction SpamAction + State string + Wildcard bool + type DomainConnection struct + RequireTLS bool + SkipVerification bool + type DomainResponse struct + Domain Domain + ReceivingDNSRecords []DNSRecord + SendingDNSRecords []DNSRecord + type DomainTracking struct + Click TrackingStatus + Open TrackingStatus + Unsubscribe TrackingStatus + type DomainsIterator struct + func (ri *DomainsIterator) Err() error + func (ri *DomainsIterator) First(ctx context.Context, items *[]Domain) bool + func (ri *DomainsIterator) Last(ctx context.Context, items *[]Domain) bool + func (ri *DomainsIterator) Next(ctx context.Context, items *[]Domain) bool + func (ri *DomainsIterator) Offset() int + func (ri *DomainsIterator) Previous(ctx context.Context, items *[]Domain) bool + type EmailValidator interface + ParseAddresses func(ctx context.Context, addresses ...string) ([]string, []string, error) + ValidateEmail func(ctx context.Context, email string, mailBoxVerify bool) (EmailVerification, error) + type EmailValidatorImpl struct + func NewEmailValidator(apiKey string) *EmailValidatorImpl + func NewEmailValidatorFromEnv() (*EmailValidatorImpl, error) + func (m *EmailValidatorImpl) APIBase() string + func (m *EmailValidatorImpl) APIKey() string + func (m *EmailValidatorImpl) Client() *http.Client + func (m *EmailValidatorImpl) ParseAddresses(ctx context.Context, addresses ...string) ([]string, []string, error) + func (m *EmailValidatorImpl) SetAPIBase(address string) + func (m *EmailValidatorImpl) SetClient(c *http.Client) + func (m *EmailValidatorImpl) ValidateEmail(ctx context.Context, email string, mailBoxVerify bool) (EmailVerification, error) + type EmailVerification struct + Address string + DidYouMean string + IsDisposableAddress bool + IsRoleAddress bool + IsValid bool + MailboxVerification string + Parts EmailVerificationParts + Reason string + Reasons []string + type EmailVerificationParts struct + DisplayName string + Domain string + LocalPart string + type Event interface + GetID func() string + GetName func() string + GetTimestamp func() time.Time + SetID func(id string) + SetName func(name string) + SetTimestamp func(time.Time) + func ParseEvent(raw []byte) (Event, error) + func ParseEvents(raw []events.RawJSON) ([]Event, error) + type EventIterator struct + func (ei *EventIterator) Err() error + func (ei *EventIterator) First(ctx context.Context, events *[]Event) bool + func (ei *EventIterator) Last(ctx context.Context, events *[]Event) bool + func (ei *EventIterator) Next(ctx context.Context, events *[]Event) bool + func (ei *EventIterator) Previous(ctx context.Context, events *[]Event) bool + type EventPoller struct + func (ep *EventPoller) Err() error + func (ep *EventPoller) Poll(ctx context.Context, events *[]Event) bool + type Export struct + ID string + Status string + URL string + type ExportList struct + Items []Export + type Failed struct + Permanent Permanent + Temporary Temporary + type GetStatOptions struct + Duration string + End time.Time + Resolution Resolution + Start time.Time + type IPAddress struct + Dedicated bool + IP string + RDNS string + type ListEventOptions struct + Begin time.Time + Compact bool + End time.Time + Filter map[string]string + ForceAscending bool + ForceDescending bool + Limit int + PollInterval time.Duration + type ListOptions struct + Limit int + type ListTagOptions struct + Limit int + Prefix string + type ListTemplateOptions struct + Active bool + Limit int + type ListsIterator struct + func (li *ListsIterator) Err() error + func (li *ListsIterator) First(ctx context.Context, items *[]MailingList) bool + func (li *ListsIterator) Last(ctx context.Context, items *[]MailingList) bool + func (li *ListsIterator) Next(ctx context.Context, items *[]MailingList) bool + func (li *ListsIterator) Previous(ctx context.Context, items *[]MailingList) bool + type Mailgun interface + APIBase func() string + APIKey func() string + AddBounce func(ctx context.Context, address, code, err string) error + AddDomainIP func(ctx context.Context, ip string) error + AddTemplateVersion func(ctx context.Context, templateName string, version *TemplateVersion) error + ChangeCredentialPassword func(ctx context.Context, login, password string) error + Client func() *http.Client + CreateComplaint func(ctx context.Context, address string) error + CreateCredential func(ctx context.Context, login, password string) error + CreateDomain func(ctx context.Context, name string, opts *CreateDomainOptions) (DomainResponse, error) + CreateExport func(ctx context.Context, url string) error + CreateMailingList func(ctx context.Context, address MailingList) (MailingList, error) + CreateMember func(ctx context.Context, merge bool, addr string, prototype Member) error + CreateMemberList func(ctx context.Context, subscribed *bool, addr string, newMembers []interface{}) error + CreateRoute func(ctx context.Context, address Route) (Route, error) + CreateTemplate func(ctx context.Context, template *Template) error + CreateUnsubscribe func(ctx context.Context, address, tag string) error + CreateWebhook func(ctx context.Context, kind string, url []string) error + DeleteBounce func(ctx context.Context, address string) error + DeleteBounceList func(ctx context.Context) error + DeleteComplaint func(ctx context.Context, address string) error + DeleteCredential func(ctx context.Context, login string) error + DeleteDomain func(ctx context.Context, name string) error + DeleteDomainIP func(ctx context.Context, ip string) error + DeleteMailingList func(ctx context.Context, address string) error + DeleteMember func(ctx context.Context, Member, list string) error + DeleteRoute func(ctx context.Context, address string) error + DeleteTag func(ctx context.Context, tag string) error + DeleteTemplate func(ctx context.Context, name string) error + DeleteTemplateVersion func(ctx context.Context, templateName, tag string) error + DeleteUnsubscribe func(ctx context.Context, address string) error + DeleteUnsubscribeWithTag func(ctx context.Context, a, t string) error + DeleteWebhook func(ctx context.Context, kind string) error + Domain func() string + GetBounce func(ctx context.Context, address string) (Bounce, error) + GetComplaint func(ctx context.Context, address string) (Complaint, error) + GetDomain func(ctx context.Context, domain string) (DomainResponse, error) + GetDomainConnection func(ctx context.Context, domain string) (DomainConnection, error) + GetDomainTracking func(ctx context.Context, domain string) (DomainTracking, error) + GetExport func(ctx context.Context, id string) (Export, error) + GetExportLink func(ctx context.Context, id string) (string, error) + GetIP func(ctx context.Context, ip string) (IPAddress, error) + GetMailingList func(ctx context.Context, address string) (MailingList, error) + GetMember func(ctx context.Context, MemberAddr, listAddr string) (Member, error) + GetRoute func(ctx context.Context, address string) (Route, error) + GetStats func(ctx context.Context, events []string, opts *GetStatOptions) ([]Stats, error) + GetStoredAttachment func(ctx context.Context, url string) ([]byte, error) + GetStoredMessage func(ctx context.Context, url string) (StoredMessage, error) + GetStoredMessageForURL func(ctx context.Context, url string) (StoredMessage, error) + GetStoredMessageRaw func(ctx context.Context, id string) (StoredMessageRaw, error) + GetStoredMessageRawForURL func(ctx context.Context, url string) (StoredMessageRaw, error) + GetTag func(ctx context.Context, tag string) (Tag, error) + GetTagLimits func(ctx context.Context, domain string) (TagLimits, error) + GetTemplate func(ctx context.Context, name string) (Template, error) + GetTemplateVersion func(ctx context.Context, templateName, tag string) (TemplateVersion, error) + GetUnsubscribe func(ctx context.Context, address string) (Unsubscribe, error) + GetWebhook func(ctx context.Context, kind string) ([]string, error) + ListBounces func(opts *ListOptions) *BouncesIterator + ListComplaints func(opts *ListOptions) *ComplaintsIterator + ListCredentials func(opts *ListOptions) *CredentialsIterator + ListDomainIPS func(ctx context.Context) ([]IPAddress, error) + ListDomains func(opts *ListOptions) *DomainsIterator + ListEvents func(*ListEventOptions) *EventIterator + ListEventsWithDomain func(opts *ListEventOptions, domain string) *EventIterator + ListExports func(ctx context.Context, url string) ([]Export, error) + ListIPS func(ctx context.Context, dedicated bool) ([]IPAddress, error) + ListMailingLists func(opts *ListOptions) *ListsIterator + ListMembers func(address string, opts *ListOptions) *MemberListIterator + ListRoutes func(opts *ListOptions) *RoutesIterator + ListTags func(*ListTagOptions) *TagIterator + ListTemplateVersions func(templateName string, opts *ListOptions) *TemplateVersionsIterator + ListTemplates func(opts *ListTemplateOptions) *TemplatesIterator + ListUnsubscribes func(opts *ListOptions) *UnsubscribesIterator + ListWebhooks func(ctx context.Context) (map[string][]string, error) + NewMIMEMessage func(body io.ReadCloser, to ...string) *Message + NewMessage func(from, subject, text string, to ...string) *Message + PollEvents func(*ListEventOptions) *EventPoller + ReSend func(ctx context.Context, id string, recipients ...string) (string, string, error) + Send func(ctx context.Context, m *Message) (string, string, error) + SetAPIBase func(url string) + SetClient func(client *http.Client) + UpdateClickTracking func(ctx context.Context, domain, active string) error + UpdateDomainConnection func(ctx context.Context, domain string, dc DomainConnection) error + UpdateMailingList func(ctx context.Context, address string, ml MailingList) (MailingList, error) + UpdateMember func(ctx context.Context, Member, list string, prototype Member) (Member, error) + UpdateOpenTracking func(ctx context.Context, domain, active string) error + UpdateRoute func(ctx context.Context, address string, r Route) (Route, error) + UpdateTemplate func(ctx context.Context, template *Template) error + UpdateTemplateVersion func(ctx context.Context, templateName string, version *TemplateVersion) error + UpdateUnsubscribeTracking func(ctx context.Context, domain, active, htmlFooter, textFooter string) error + UpdateWebhook func(ctx context.Context, kind string, url []string) error + VerifyDomain func(ctx context.Context, name string) (string, error) + VerifyWebhookRequest func(req *http.Request) (verified bool, err error) + VerifyWebhookSignature func(sig Signature) (verified bool, err error) + type MailgunImpl struct + func NewMailgun(domain, apiKey string) *MailgunImpl + func NewMailgunFromEnv() (*MailgunImpl, error) + func (mg *MailgunImpl) APIBase() string + func (mg *MailgunImpl) APIKey() string + func (mg *MailgunImpl) AddBounce(ctx context.Context, address, code, error string) error + func (mg *MailgunImpl) AddDomainIP(ctx context.Context, ip string) error + func (mg *MailgunImpl) AddTemplateVersion(ctx context.Context, templateName string, version *TemplateVersion) error + func (mg *MailgunImpl) ChangeCredentialPassword(ctx context.Context, login, password string) error + func (mg *MailgunImpl) Client() *http.Client + func (mg *MailgunImpl) CreateComplaint(ctx context.Context, address string) error + func (mg *MailgunImpl) CreateCredential(ctx context.Context, login, password string) error + func (mg *MailgunImpl) CreateDomain(ctx context.Context, name string, opts *CreateDomainOptions) (DomainResponse, error) + func (mg *MailgunImpl) CreateExport(ctx context.Context, url string) error + func (mg *MailgunImpl) CreateMailingList(ctx context.Context, prototype MailingList) (MailingList, error) + func (mg *MailgunImpl) CreateMember(ctx context.Context, merge bool, addr string, prototype Member) error + func (mg *MailgunImpl) CreateMemberList(ctx context.Context, u *bool, addr string, newMembers []interface{}) error + func (mg *MailgunImpl) CreateRoute(ctx context.Context, prototype Route) (_ignored Route, err error) + func (mg *MailgunImpl) CreateTemplate(ctx context.Context, template *Template) error + func (mg *MailgunImpl) CreateUnsubscribe(ctx context.Context, address, tag string) error + func (mg *MailgunImpl) CreateUnsubscribes(ctx context.Context, unsubscribes []NewUnsubscribe) error + func (mg *MailgunImpl) CreateWebhook(ctx context.Context, kind string, urls []string) error + func (mg *MailgunImpl) DeleteBounce(ctx context.Context, address string) error + func (mg *MailgunImpl) DeleteBounceList(ctx context.Context) error + func (mg *MailgunImpl) DeleteComplaint(ctx context.Context, address string) error + func (mg *MailgunImpl) DeleteCredential(ctx context.Context, login string) error + func (mg *MailgunImpl) DeleteDomain(ctx context.Context, name string) error + func (mg *MailgunImpl) DeleteDomainIP(ctx context.Context, ip string) error + func (mg *MailgunImpl) DeleteMailingList(ctx context.Context, addr string) error + func (mg *MailgunImpl) DeleteMember(ctx context.Context, member, addr string) error + func (mg *MailgunImpl) DeleteRoute(ctx context.Context, id string) error + func (mg *MailgunImpl) DeleteTag(ctx context.Context, tag string) error + func (mg *MailgunImpl) DeleteTemplate(ctx context.Context, name string) error + func (mg *MailgunImpl) DeleteTemplateVersion(ctx context.Context, templateName, tag string) error + func (mg *MailgunImpl) DeleteUnsubscribe(ctx context.Context, address string) error + func (mg *MailgunImpl) DeleteUnsubscribeWithTag(ctx context.Context, a, t string) error + func (mg *MailgunImpl) DeleteWebhook(ctx context.Context, kind string) error + func (mg *MailgunImpl) Domain() string + func (mg *MailgunImpl) GetBounce(ctx context.Context, address string) (Bounce, error) + func (mg *MailgunImpl) GetComplaint(ctx context.Context, address string) (Complaint, error) + func (mg *MailgunImpl) GetDomain(ctx context.Context, domain string) (DomainResponse, error) + func (mg *MailgunImpl) GetDomainConnection(ctx context.Context, domain string) (DomainConnection, error) + func (mg *MailgunImpl) GetDomainTracking(ctx context.Context, domain string) (DomainTracking, error) + func (mg *MailgunImpl) GetExport(ctx context.Context, id string) (Export, error) + func (mg *MailgunImpl) GetExportLink(ctx context.Context, id string) (string, error) + func (mg *MailgunImpl) GetIP(ctx context.Context, ip string) (IPAddress, error) + func (mg *MailgunImpl) GetMailingList(ctx context.Context, addr string) (MailingList, error) + func (mg *MailgunImpl) GetMember(ctx context.Context, s, l string) (Member, error) + func (mg *MailgunImpl) GetRoute(ctx context.Context, id string) (Route, error) + func (mg *MailgunImpl) GetStats(ctx context.Context, events []string, opts *GetStatOptions) ([]Stats, error) + func (mg *MailgunImpl) GetStoredAttachment(ctx context.Context, url string) ([]byte, error) + func (mg *MailgunImpl) GetStoredMessage(ctx context.Context, url string) (StoredMessage, error) + func (mg *MailgunImpl) GetStoredMessageForURL(ctx context.Context, url string) (StoredMessage, error) + func (mg *MailgunImpl) GetStoredMessageRaw(ctx context.Context, url string) (StoredMessageRaw, error) + func (mg *MailgunImpl) GetStoredMessageRawForURL(ctx context.Context, url string) (StoredMessageRaw, error) + func (mg *MailgunImpl) GetTag(ctx context.Context, tag string) (Tag, error) + func (mg *MailgunImpl) GetTagLimits(ctx context.Context, domain string) (TagLimits, error) + func (mg *MailgunImpl) GetTemplate(ctx context.Context, name string) (Template, error) + func (mg *MailgunImpl) GetTemplateVersion(ctx context.Context, templateName, tag string) (TemplateVersion, error) + func (mg *MailgunImpl) GetUnsubscribe(ctx context.Context, address string) (Unsubscribe, error) + func (mg *MailgunImpl) GetWebhook(ctx context.Context, kind string) ([]string, error) + func (mg *MailgunImpl) ListBounces(opts *ListOptions) *BouncesIterator + func (mg *MailgunImpl) ListComplaints(opts *ListOptions) *ComplaintsIterator + func (mg *MailgunImpl) ListCredentials(opts *ListOptions) *CredentialsIterator + func (mg *MailgunImpl) ListDomainIPS(ctx context.Context) ([]IPAddress, error) + func (mg *MailgunImpl) ListDomains(opts *ListOptions) *DomainsIterator + func (mg *MailgunImpl) ListEvents(opts *ListEventOptions) *EventIterator + func (mg *MailgunImpl) ListEventsWithDomain(opts *ListEventOptions, domain string) *EventIterator + func (mg *MailgunImpl) ListExports(ctx context.Context, url string) ([]Export, error) + func (mg *MailgunImpl) ListIPS(ctx context.Context, dedicated bool) ([]IPAddress, error) + func (mg *MailgunImpl) ListMailingLists(opts *ListOptions) *ListsIterator + func (mg *MailgunImpl) ListMembers(address string, opts *ListOptions) *MemberListIterator + func (mg *MailgunImpl) ListRoutes(opts *ListOptions) *RoutesIterator + func (mg *MailgunImpl) ListTags(opts *ListTagOptions) *TagIterator + func (mg *MailgunImpl) ListTemplateVersions(templateName string, opts *ListOptions) *TemplateVersionsIterator + func (mg *MailgunImpl) ListTemplates(opts *ListTemplateOptions) *TemplatesIterator + func (mg *MailgunImpl) ListUnsubscribes(opts *ListOptions) *UnsubscribesIterator + func (mg *MailgunImpl) ListWebhooks(ctx context.Context) (map[string][]string, error) + func (mg *MailgunImpl) NewMIMEMessage(body io.ReadCloser, to ...string) *Message + func (mg *MailgunImpl) NewMessage(from, subject, text string, to ...string) *Message + func (mg *MailgunImpl) PollEvents(opts *ListEventOptions) *EventPoller + func (mg *MailgunImpl) ReSend(ctx context.Context, url string, recipients ...string) (string, string, error) + func (mg *MailgunImpl) Send(ctx context.Context, message *Message) (mes string, id string, err error) + func (mg *MailgunImpl) SetAPIBase(address string) + func (mg *MailgunImpl) SetClient(c *http.Client) + func (mg *MailgunImpl) UpdateClickTracking(ctx context.Context, domain, active string) error + func (mg *MailgunImpl) UpdateDomainConnection(ctx context.Context, domain string, settings DomainConnection) error + func (mg *MailgunImpl) UpdateMailingList(ctx context.Context, addr string, prototype MailingList) (MailingList, error) + func (mg *MailgunImpl) UpdateMember(ctx context.Context, s, l string, prototype Member) (Member, error) + func (mg *MailgunImpl) UpdateOpenTracking(ctx context.Context, domain, active string) error + func (mg *MailgunImpl) UpdateRoute(ctx context.Context, id string, route Route) (Route, error) + func (mg *MailgunImpl) UpdateTemplate(ctx context.Context, template *Template) error + func (mg *MailgunImpl) UpdateTemplateVersion(ctx context.Context, templateName string, version *TemplateVersion) error + func (mg *MailgunImpl) UpdateUnsubscribeTracking(ctx context.Context, domain, active, htmlFooter, textFooter string) error + func (mg *MailgunImpl) UpdateWebhook(ctx context.Context, kind string, urls []string) error + func (mg *MailgunImpl) VerifyDomain(ctx context.Context, domain string) (string, error) + func (mg *MailgunImpl) VerifyWebhookRequest(req *http.Request) (verified bool, err error) + func (mg *MailgunImpl) VerifyWebhookSignature(sig Signature) (verified bool, err error) + type MailingList struct + AccessLevel AccessLevel + Address string + CreatedAt RFC2822Time + Description string + MembersCount int + Name string + type Member struct + Address string + Name string + Subscribed *bool + Vars map[string]interface{} + type MemberListIterator struct + func (li *MemberListIterator) Err() error + func (li *MemberListIterator) First(ctx context.Context, items *[]Member) bool + func (li *MemberListIterator) Last(ctx context.Context, items *[]Member) bool + func (li *MemberListIterator) Next(ctx context.Context, items *[]Member) bool + func (li *MemberListIterator) Previous(ctx context.Context, items *[]Member) bool + type Message struct + func (m *Message) AddAttachment(attachment string) + func (m *Message) AddBCC(recipient string) + func (m *Message) AddBufferAttachment(filename string, buffer []byte) + func (m *Message) AddCC(recipient string) + func (m *Message) AddCampaign(campaign string) + func (m *Message) AddDomain(domain string) + func (m *Message) AddHeader(header, value string) + func (m *Message) AddInline(inline string) + func (m *Message) AddReaderAttachment(filename string, readCloser io.ReadCloser) + func (m *Message) AddReaderInline(filename string, readCloser io.ReadCloser) + func (m *Message) AddRecipient(recipient string) error + func (m *Message) AddRecipientAndVariables(r string, vars map[string]interface{}) error + func (m *Message) AddTag(tag ...string) error + func (m *Message) AddTemplateVariable(variable string, value interface{}) error + func (m *Message) AddVariable(variable string, value interface{}) error + func (m *Message) EnableNativeSend() + func (m *Message) EnableTestMode() + func (m *Message) GetHeaders() map[string]string + func (m *Message) RecipientCount() int + func (m *Message) SetAMPHtml(html string) + func (m *Message) SetDKIM(dkim bool) + func (m *Message) SetDeliveryTime(dt time.Time) + func (m *Message) SetHtml(html string) + func (m *Message) SetReplyTo(recipient string) + func (m *Message) SetRequireTLS(b bool) + func (m *Message) SetSkipVerification(b bool) + func (m *Message) SetTemplate(t string) + func (m *Message) SetTemplateRenderText(render bool) + func (m *Message) SetTemplateVersion(tag string) + func (m *Message) SetTracking(tracking bool) + func (m *Message) SetTrackingClicks(trackingClicks bool) + func (m *Message) SetTrackingOpens(trackingOpens bool) + type MockServer struct + func NewMockServer() MockServer + func (ms *MockServer) Stop() + func (ms *MockServer) URL() string + func (ms *MockServer) URL4() string + type NewUnsubscribe struct + Address string + CreatedAt RFC2822Time + Tags []string + type Paging struct + First string + Last string + Next string + Previous string + type Permanent struct + Bounce int + DelayedBounce int + SuppressBounce int + SuppressComplaint int + SuppressUnsubscribe int + Total int + type RFC2822Time time.Time + func NewRFC2822Time(str string) (RFC2822Time, error) + func (t *RFC2822Time) UnmarshalJSON(s []byte) error + func (t RFC2822Time) IsZero() bool + func (t RFC2822Time) MarshalJSON() ([]byte, error) + func (t RFC2822Time) String() string + func (t RFC2822Time) Unix() int64 + type ReaderAttachment struct + Filename string + ReadCloser io.ReadCloser + type Recipient struct + Email string + Name string + func (r *Recipient) UnmarshalText(text []byte) error + func (r Recipient) MarshalText() ([]byte, error) + func (r Recipient) String() string + type Resolution string + type Route struct + Actions []string + CreatedAt RFC2822Time + Description string + Expression string + Id string + Priority int + type RoutesIterator struct + func (ri *RoutesIterator) Err() error + func (ri *RoutesIterator) First(ctx context.Context, items *[]Route) bool + func (ri *RoutesIterator) Last(ctx context.Context, items *[]Route) bool + func (ri *RoutesIterator) Next(ctx context.Context, items *[]Route) bool + func (ri *RoutesIterator) Offset() int + func (ri *RoutesIterator) Previous(ctx context.Context, items *[]Route) bool + type Signature struct + Signature string + TimeStamp string + Token string + type SpamAction string + type Stats struct + Accepted Accepted + Clicked Total + Complained Total + Delivered Delivered + Failed Failed + Opened Total + Stored Total + Time string + Unsubscribed Total + type StoredAttachment struct + ContentType string + Name string + Size int + Url string + type StoredMessage struct + Attachments []StoredAttachment + BodyHtml string + BodyPlain string + ContentIDMap map[string]struct{ ... } + From string + MessageHeaders [][]string + MessageUrl string + Recipients string + Sender string + StrippedHtml string + StrippedSignature string + StrippedText string + Subject string + type StoredMessageRaw struct + BodyMime string + From string + Recipients string + Sender string + Subject string + type Tag struct + Description string + FirstSeen *time.Time + LastSeen *time.Time + Value string + type TagIterator struct + func (ti *TagIterator) Err() error + func (ti *TagIterator) First(ctx context.Context, items *[]Tag) bool + func (ti *TagIterator) Last(ctx context.Context, items *[]Tag) bool + func (ti *TagIterator) Next(ctx context.Context, items *[]Tag) bool + func (ti *TagIterator) Previous(ctx context.Context, items *[]Tag) bool + type TagLimits struct + Count int + Limit int + type Template struct + CreatedAt RFC2822Time + Description string + Name string + Version TemplateVersion + type TemplateEngine string + type TemplateVersion struct + Active bool + Comment string + CreatedAt RFC2822Time + Engine TemplateEngine + Tag string + Template string + type TemplateVersionsIterator struct + func (li *TemplateVersionsIterator) Err() error + func (li *TemplateVersionsIterator) First(ctx context.Context, items *[]TemplateVersion) bool + func (li *TemplateVersionsIterator) Last(ctx context.Context, items *[]TemplateVersion) bool + func (li *TemplateVersionsIterator) Next(ctx context.Context, items *[]TemplateVersion) bool + func (li *TemplateVersionsIterator) Previous(ctx context.Context, items *[]TemplateVersion) bool + type TemplatesIterator struct + func (ti *TemplatesIterator) Err() error + func (ti *TemplatesIterator) First(ctx context.Context, items *[]Template) bool + func (ti *TemplatesIterator) Last(ctx context.Context, items *[]Template) bool + func (ti *TemplatesIterator) Next(ctx context.Context, items *[]Template) bool + func (ti *TemplatesIterator) Previous(ctx context.Context, items *[]Template) bool + type Temporary struct + Espblock int + type Total struct + Total int + type TrackingStatus struct + Active bool + HTMLFooter string + TextFooter string + type UnexpectedResponseError struct + Actual int + Data []byte + Expected []int + URL string + func (e *UnexpectedResponseError) Error() string + func (e *UnexpectedResponseError) String() string + type Unsubscribe struct + Address string + CreatedAt RFC2822Time + ID string + Tags []string + type UnsubscribesIterator struct + func (ci *UnsubscribesIterator) Err() error + func (ci *UnsubscribesIterator) First(ctx context.Context, items *[]Unsubscribe) bool + func (ci *UnsubscribesIterator) Last(ctx context.Context, items *[]Unsubscribe) bool + func (ci *UnsubscribesIterator) Next(ctx context.Context, items *[]Unsubscribe) bool + func (ci *UnsubscribesIterator) Previous(ctx context.Context, items *[]Unsubscribe) bool + type UrlOrUrls struct + Url string + Urls []string + type WebHookResponse struct + Webhook UrlOrUrls + type WebHooksListResponse struct + Webhooks map[string]UrlOrUrls + type WebhookPayload struct + EventData events.RawJSON + Signature Signature Other modules containing this package github.com/BoltApp/mailgun-go