events

package
v0.0.0-...-25a6cea Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandLineSendEvent   = CommandLineEventType("Send")
	CommandLineImportEvent = CommandLineEventType("Import")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandLineEvent

type CommandLineEvent struct {
	EListManCommand CommandLineEventType `json:"elistmanCommand"`
	Send            *SendEvent           `json:"send"`
	Import          *ImportEvent         `json:"import"`
}

type CommandLineEventType

type CommandLineEventType string

type ImportEvent

type ImportEvent struct {
	Addresses []string
}

type ImportResponse

type ImportResponse struct {
	NumImported int
	Failures    []string
}

type SendEvent

type SendEvent struct {
	Addresses []string
	email.Message
}

type SendResponse

type SendResponse struct {
	Success bool
	NumSent int
	Details string
}

type SesBounceEvent

type SesBounceEvent struct {
	BounceType        string                `json:"bounceType"`
	BounceSubType     string                `json:"bounceSubType"`
	BouncedRecipients []SesBouncedRecipient `json:"bouncedRecipients"`
	Timestamp         time.Time             `json:"timestamp"`
	FeedbackId        string                `json:"feedbackId"`
	ReportingMTA      string                `json:"reportingMTA"`
}

type SesBouncedRecipient

type SesBouncedRecipient struct {
	EmailAddress   string `json:"emailAddress"`
	Action         string `json:"action"`
	Status         string `json:"status"`
	DiagnosticCode string `json:"diagnosticCode"`
}

type SesComplainedRecipient

type SesComplainedRecipient struct {
	EmailAddress string `json:"emailAddress"`
}

type SesComplaintEvent

type SesComplaintEvent struct {
	ComplaintSubType      string                   `json:"complaintSubType"`
	ComplainedRecipients  []SesComplainedRecipient `json:"complainedRecipients"`
	Timestamp             time.Time                `json:"timestamp"`
	FeedbackId            string                   `json:"feedbackId"`
	UserAgent             string                   `json:"userAgent"`
	ComplaintFeedbackType string                   `json:"complaintFeedbackType"`
	ArrivalDate           time.Time                `json:"arrivalDate"`
}

type SesDeliveryEvent

type SesDeliveryEvent struct {
	Timestamp            time.Time `json:"timestamp"`
	ProcessingTimeMillis int64     `json:"processingTimeMillis"`
	Recipients           []string  `json:"recipients"`
	SmtpResponse         string    `json:"smtpResponse"`
	ReportingMTA         string    `json:"reportingMTA"`
}

type SesEventMessage

type SesEventMessage struct {
	events.SimpleEmailMessage
	SourceArn        string              `json:"sourceArn"`
	SendingAccountId string              `json:"sendingAccountId"`
	Tags             map[string][]string `json:"tags"`
}

type SesEventRecord

type SesEventRecord struct {
	EventType string             `json:"eventType"`
	Mail      SesEventMessage    `json:"mail"`
	Bounce    *SesBounceEvent    `json:"bounce"`
	Complaint *SesComplaintEvent `json:"complaint"`
	Delivery  *SesDeliveryEvent  `json:"delivery"`
	Send      *SesSendEvent      `json:"send"`
	Reject    *SesRejectEvent    `json:"reject"`
}

type SesRejectEvent

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

type SesSendEvent

type SesSendEvent struct {
}

According to the documentation, "The JSON object that contains information about a `send` event is always empty."

Jump to

Keyboard shortcuts

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