events

package
v0.0.0-...-26e3963 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounce

type Bounce struct {
	BounceType        string            `json:"bounceType"`
	BounceSubType     string            `json:"bounceSubType"`
	BouncedRecipients []bounceRecipient `json:"bouncedRecipients"`
	Timestamp         string            `json:"timestamp"`
	FeedbackId        string            `json:"feedbackId"`
	ReportingMTA      string            `json:"reportingMTA"`
}

Bounce containts info for bounce events.

type Click

type Click struct {
	IpAddress string              `json:"ipAddress"`
	Timestamp string              `json:"timestamp"`
	UserAgent string              `json:"userAgent"`
	Link      string              `json:"link"`
	LinkTags  map[string][]string `json:"linkTags"`
}

Click contains info for the Click events.

type Complaint

type Complaint struct {
	ComplainedRecipients  []complaintRecipient `json:"complainedRecipients"`
	Timestamp             string               `json:"timestamp"`
	FeedbackId            string               `json:"feedbackId"`
	UserAgent             string               `json:"userAgent"`
	ComplaintFeedbackType string               `json:"complaintFeedbackType"`
	ArrivalDate           string               `json:"arrivalDate"`
}

type Delivery

type Delivery struct {
	Timestamp            string   `json:"timestamp"`
	ProcessingTimeMillis string   `json:"processingTimeMillis"`
	Recipients           []string `json:"recipients"`
	SmtpResponse         string   `json:"smtpResponse"`
	ReportingMTA         string   `json:"reportingMTA"`
}

Delivery contains info for Delivery events.

type DeliveryDelay

type DeliveryDelay struct {
	DelayType         string             `json:"delayType"`
	DelayedRecipients []delayedRecipient `json:"delayedRecipients"`
	Timestamp         string             `json:"timestamp"`
	ExpirationTime    string             `json:"expirationTime"`
	ReportingMTA      string             `json:"reportingMTA"`
}

DeliveryDelay contains info for the DeliveryDelay events.

type EmailNotification

type EmailNotification struct {
	NotificationType string           `json:"notificationType"`
	Bounce           Bounce           `json:"bounce"`
	Complaint        Complaint        `json:"complaint"`
	Delivery         Delivery         `json:"delivery"`
	Send             interface{}      `json:"send"` // nil type
	Reject           Reject           `json:"reject"`
	Open             Open             `json:"open"`
	Click            Click            `json:"click"`
	RenderingFailure RenderingFailure `json:"failure"`
	DeliveryDelay    DeliveryDelay    `json:"deliveryDelay"`
	Mail             Mail             `json:"mail"`
}

EmailNotification wraps the SES Event data type.

type Mail

type Mail struct {
	Timestamp        string                 `json:"timestamp"`
	Source           string                 `json:"source"`
	SourceArn        string                 `json:"sourceArn"`
	SendingAcctId    string                 `json:"sendingAccountId"`
	MessageId        string                 `json:"messageId"`
	Destination      []string               `json:"destination"`
	HeadersTruncated bool                   `json:"headersTruncated"`
	Headers          []header               `json:"headers"`
	CommonHeaders    map[string]interface{} `json:"commonHeaders"`
	Tags             map[string][]string    `json:"tags"`
}

type Open

type Open struct {
	IpAddress string `json:"ipAddress"`
	Timestamp string `json:"timestamp"`
	UserAgent string `json:"userAgent"`
}

Open contains info for the Open events.

type Reject

type Reject struct {
	Reason string `json:"reason"`
}

Reject contains info for the Reject events.

type RenderingFailure

type RenderingFailure struct {
	TemplateName string `json:"templateName"`
	ErrorMessage string `json:"errorMessage"`
}

RenderingFailure contains info for the RenderingFailure events.

Jump to

Keyboard shortcuts

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