Documentation
¶
Index ¶
- Constants
- type Accepted
- type Attachment
- type Campaign
- type Clicked
- type ClientInfo
- type Complained
- type Delivered
- type DeliveryStatus
- type Envelope
- type EventName
- type Failed
- type Flags
- type Generic
- type GeoLocation
- type ListMemberUploadError
- type ListMemberUploaded
- type ListUploaded
- type MailingList
- type MailingListError
- type MailingListMember
- type Message
- type MessageHeaders
- type Opened
- type Paging
- type RawJSON
- type Rejected
- type Response
- type Storage
- type Stored
- type Unsubscribed
Constants ¶
View Source
const ( EventAccepted = "accepted" EventRejected = "rejected" EventDelivered = "delivered" EventFailed = "failed" EventOpened = "opened" EventClicked = "clicked" EventUnsubscribed = "unsubscribed" EventComplained = "complained" EventStored = "stored" EventDropped = "dropped" EventListMemberUploaded = "list_member_uploaded" EventListMemberUploadError = "list_member_upload_error" EventListUploaded = "list_uploaded" )
View Source
const ( TransportHTTP = "http" TransportSMTP = "smtp" DeviceUnknown = "unknown" DeviceMobileBrowser = "desktop" DeviceBrowser = "mobile" DeviceEmail = "tablet" DeviceOther = "other" ClientUnknown = "unknown" ClientMobileBrowser = "mobile browser" ClientBrowser = "browser" ClientEmail = "email client" ClientLibrary = "library" ClientRobot = "robot" ClientOther = "other" ReasonUnknown = "unknown" ReasonGeneric = "generic" ReasonBounce = "bounce" ReasonESPBlock = "espblock" ReasonGreylisted = "greylisted" ReasonBlacklisted = "blacklisted" ReasonSuppressBounce = "suppress-bounce" ReasonSuppressComplaint = "suppress-complaint" ReasonSuppressUnsubscribe = "suppress-unsubscribe" ReasonOld = "old" ReasonHardFail = "hardfail" SeverityUnknown = "unknown" SeverityTemporary = "temporary" SeverityPermanent = "permanent" SeverityInternal = "internal" MethodUnknown = "unknown" MethodSMTP = "smtp" MethodHTTP = "http" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Accepted ¶
type Accepted struct {
Generic
Envelope Envelope `json:"envelope"`
Message Message `json:"message"`
Flags Flags `json:"flags"`
Recipient string `json:"recipient"`
RecipientDomain string `json:"recipient-domain"`
Method string `json:"method"`
OriginatingIP string `json:"originating-ip"`
Tags []string `json:"tags"`
Campaigns []Campaign `json:"campaigns"`
UserVariables interface{} `json:"user-variables"`
Storage Storage `json:"storage"`
}
type Attachment ¶
type Clicked ¶
type Clicked struct {
Generic
Url string `json:"url"`
Message Message `json:"message"`
Campaigns []Campaign `json:"campaigns"`
MailingList MailingList `json:"mailing-list"`
Recipient string `json:"recipient"`
RecipientDomain string `json:"recipient-domain"`
Tags []string `json:"tags"`
IP string `json:"ip"`
ClientInfo ClientInfo `json:"client-info"`
GeoLocation GeoLocation `json:"geolocation"`
UserVariables interface{} `json:"user-variables"`
}
type ClientInfo ¶
type ClientInfo struct {
AcceptLanguage string `json:"accept-language"`
ClientName string `json:"client-name"`
ClientOS string `json:"client-os"`
ClientType string `json:"client-type"`
DeviceType string `json:"device-type"`
IP string `json:"ip"`
UserAgent string `json:"user-agent"`
Bot string `json:"bot"`
}
type Complained ¶
type Delivered ¶
type Delivered struct {
Generic
Envelope Envelope `json:"envelope"`
Message Message `json:"message"`
Flags Flags `json:"flags"`
Recipient string `json:"recipient"`
RecipientDomain string `json:"recipient-domain"`
Method string `json:"method"`
Tags []string `json:"tags"`
Campaigns []Campaign `json:"campaigns"`
Storage Storage `json:"storage"`
DeliveryStatus DeliveryStatus `json:"delivery-status"`
UserVariables interface{} `json:"user-variables"`
}
type DeliveryStatus ¶
type EventName ¶
type EventName struct {
Name string `json:"event"`
}
An EventName is a struct with the event name.
type Failed ¶
type Failed struct {
Generic
Envelope Envelope `json:"envelope"`
Message Message `json:"message"`
Flags Flags `json:"flags"`
Recipient string `json:"recipient"`
RecipientDomain string `json:"recipient-domain"`
Method string `json:"method"`
Tags []string `json:"tags"`
Campaigns []Campaign `json:"campaigns"`
Storage Storage `json:"storage"`
DeliveryStatus DeliveryStatus `json:"delivery-status"`
Severity string `json:"severity"`
Reason string `json:"reason"`
UserVariables interface{} `json:"user-variables"`
}
type GeoLocation ¶
type ListMemberUploadError ¶
type ListMemberUploadError struct {
Generic
MailingList MailingList `json:"mailing-list"`
TaskID string `json:"task-id"`
Format string `json:"format"`
MemberDescription string `json:"member-description"`
Error MailingListError `json:"error"`
}
type ListMemberUploaded ¶
type ListMemberUploaded struct {
Generic
MailingList MailingList `json:"mailing-list"`
Member MailingListMember `json:"member"`
TaskID string `json:"task-id"`
}
type ListUploaded ¶
type ListUploaded struct {
Generic
MailingList MailingList `json:"mailing-list"`
IsUpsert bool `json:"is-upsert"`
Format string `json:"format"`
UpsertedCount int `json:"upserted-count"`
FailedCount int `json:"failed-count"`
Member MailingListMember `json:"member"`
Subscribed bool `json:"subscribed"`
TaskID string `json:"task-id"`
}
type MailingList ¶
type MailingListError ¶
type MailingListError struct {
Message string
}
type MailingListMember ¶
type Message ¶
type Message struct {
Headers MessageHeaders `json:"headers"`
Attachments []Attachment `json:"attachments"`
Recipients []string `json:"recipients"`
Size int `json:"size"`
}
type MessageHeaders ¶
type Opened ¶
type Opened struct {
Generic
Message Message `json:"message"`
Campaigns []Campaign `json:"campaigns"`
MailingList MailingList `json:"mailing-list"`
Recipient string `json:"recipient"`
RecipientDomain string `json:"recipient-domain"`
Tags []string `json:"tags"`
IP string `json:"ip"`
ClientInfo ClientInfo `json:"client-info"`
GeoLocation GeoLocation `json:"geolocation"`
UserVariables interface{} `json:"user-variables"`
}
type Rejected ¶
type Rejected struct {
Generic
Reject struct {
Reason string `json:"reason"`
Description string `json:"description"`
} `json:"reject"`
Message Message `json:"message"`
Storage Storage `json:"storage"`
Flags Flags `json:"flags"`
Tags []string `json:"tags"`
Campaigns []Campaign `json:"campaigns"`
UserVariables interface{} `json:"user-variables"`
}
type Unsubscribed ¶
type Unsubscribed struct {
Generic
Message Message `json:"message"`
Campaigns []Campaign `json:"campaigns"`
MailingList MailingList `json:"mailing-list"`
Recipient string `json:"recipient"`
RecipientDomain string `json:"recipient-domain"`
Tags []string `json:"tags"`
IP string `json:"ip"`
ClientInfo ClientInfo `json:"client-info"`
GeoLocation GeoLocation `json:"geolocation"`
UserVariables interface{} `json:"user-variables"`
}
Click to show internal directories.
Click to hide internal directories.