events

package
v4.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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"`
}

func (Accepted) MarshalEasyJSON

func (v Accepted) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Accepted) MarshalJSON

func (v Accepted) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Accepted) UnmarshalEasyJSON

func (v *Accepted) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Accepted) UnmarshalJSON

func (v *Accepted) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Attachment

type Attachment struct {
	FileName    string `json:"filename"`
	ContentType string `json:"content-type"`
	Size        int    `json:"size"`
}

func (Attachment) MarshalEasyJSON

func (v Attachment) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Attachment) MarshalJSON

func (v Attachment) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Attachment) UnmarshalEasyJSON

func (v *Attachment) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Attachment) UnmarshalJSON

func (v *Attachment) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Campaign

type Campaign struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

func (Campaign) MarshalEasyJSON

func (v Campaign) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Campaign) MarshalJSON

func (v Campaign) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Campaign) UnmarshalEasyJSON

func (v *Campaign) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Campaign) UnmarshalJSON

func (v *Campaign) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (Clicked) MarshalEasyJSON

func (v Clicked) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Clicked) MarshalJSON

func (v Clicked) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Clicked) UnmarshalEasyJSON

func (v *Clicked) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Clicked) UnmarshalJSON

func (v *Clicked) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (ClientInfo) MarshalEasyJSON

func (v ClientInfo) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ClientInfo) MarshalJSON

func (v ClientInfo) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ClientInfo) UnmarshalEasyJSON

func (v *ClientInfo) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ClientInfo) UnmarshalJSON

func (v *ClientInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Complained

type Complained struct {
	Generic

	Message   Message    `json:"message"`
	Campaigns []Campaign `json:"campaigns"`

	Recipient     string      `json:"recipient"`
	Tags          []string    `json:"tags"`
	UserVariables interface{} `json:"user-variables"`
}

func (Complained) MarshalEasyJSON

func (v Complained) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Complained) MarshalJSON

func (v Complained) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Complained) UnmarshalEasyJSON

func (v *Complained) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Complained) UnmarshalJSON

func (v *Complained) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (Delivered) MarshalEasyJSON

func (v Delivered) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Delivered) MarshalJSON

func (v Delivered) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Delivered) UnmarshalEasyJSON

func (v *Delivered) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Delivered) UnmarshalJSON

func (v *Delivered) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type DeliveryStatus

type DeliveryStatus struct {
	Code           int     `json:"code"`
	AttemptNo      int     `json:"attempt-no"`
	Description    string  `json:"description"`
	Message        string  `json:"message"`
	SessionSeconds float64 `json:"session-seconds"`
}

func (DeliveryStatus) MarshalEasyJSON

func (v DeliveryStatus) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DeliveryStatus) MarshalJSON

func (v DeliveryStatus) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DeliveryStatus) UnmarshalEasyJSON

func (v *DeliveryStatus) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DeliveryStatus) UnmarshalJSON

func (v *DeliveryStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Envelope

type Envelope struct {
	MailFrom    string `json:"mail-from"`
	Sender      string `json:"sender"`
	Transport   string `json:"transport"`
	Targets     string `json:"targets"`
	SendingHost string `json:"sending-host"`
	SendingIP   string `json:"sending-ip"`
}

func (Envelope) MarshalEasyJSON

func (v Envelope) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Envelope) MarshalJSON

func (v Envelope) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Envelope) UnmarshalEasyJSON

func (v *Envelope) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Envelope) UnmarshalJSON

func (v *Envelope) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventName

type EventName struct {
	Name string `json:"event"`
}

An EventName is a struct with the event name.

func (*EventName) GetName

func (e *EventName) GetName() string

GetName returns the name of the event.

func (EventName) MarshalEasyJSON

func (v EventName) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventName) MarshalJSON

func (v EventName) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventName) SetName

func (e *EventName) SetName(name string)

func (*EventName) UnmarshalEasyJSON

func (v *EventName) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventName) UnmarshalJSON

func (v *EventName) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (Failed) MarshalEasyJSON

func (v Failed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Failed) MarshalJSON

func (v Failed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Failed) UnmarshalEasyJSON

func (v *Failed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Failed) UnmarshalJSON

func (v *Failed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Flags

type Flags struct {
	IsAuthenticated bool `json:"is-authenticated"`
	IsBig           bool `json:"is-big"`
	IsSystemTest    bool `json:"is-system-test"`
	IsTestMode      bool `json:"is-test-mode"`
	IsDelayedBounce bool `json:"is-delayed-bounce"`
}

func (Flags) MarshalEasyJSON

func (v Flags) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Flags) MarshalJSON

func (v Flags) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Flags) UnmarshalEasyJSON

func (v *Flags) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Flags) UnmarshalJSON

func (v *Flags) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Generic

type Generic struct {
	EventName
	Timestamp float64 `json:"timestamp"`
	ID        string  `json:"id"`
}

func (*Generic) GetID

func (g *Generic) GetID() string

func (*Generic) GetTimestamp

func (g *Generic) GetTimestamp() time.Time

func (Generic) MarshalEasyJSON

func (v Generic) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Generic) MarshalJSON

func (v Generic) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Generic) SetID

func (g *Generic) SetID(id string)

func (*Generic) SetTimestamp

func (g *Generic) SetTimestamp(t time.Time)

func (*Generic) UnmarshalEasyJSON

func (v *Generic) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Generic) UnmarshalJSON

func (v *Generic) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GeoLocation

type GeoLocation struct {
	City    string `json:"city"`
	Country string `json:"country"`
	Region  string `json:"region"`
}

func (GeoLocation) MarshalEasyJSON

func (v GeoLocation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GeoLocation) MarshalJSON

func (v GeoLocation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GeoLocation) UnmarshalEasyJSON

func (v *GeoLocation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GeoLocation) UnmarshalJSON

func (v *GeoLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (ListMemberUploadError) MarshalEasyJSON

func (v ListMemberUploadError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ListMemberUploadError) MarshalJSON

func (v ListMemberUploadError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ListMemberUploadError) UnmarshalEasyJSON

func (v *ListMemberUploadError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ListMemberUploadError) UnmarshalJSON

func (v *ListMemberUploadError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ListMemberUploaded

type ListMemberUploaded struct {
	Generic
	MailingList MailingList       `json:"mailing-list"`
	Member      MailingListMember `json:"member"`
	TaskID      string            `json:"task-id"`
}

func (ListMemberUploaded) MarshalEasyJSON

func (v ListMemberUploaded) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ListMemberUploaded) MarshalJSON

func (v ListMemberUploaded) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ListMemberUploaded) UnmarshalEasyJSON

func (v *ListMemberUploaded) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ListMemberUploaded) UnmarshalJSON

func (v *ListMemberUploaded) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (ListUploaded) MarshalEasyJSON

func (v ListUploaded) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ListUploaded) MarshalJSON

func (v ListUploaded) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ListUploaded) UnmarshalEasyJSON

func (v *ListUploaded) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ListUploaded) UnmarshalJSON

func (v *ListUploaded) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MailingList

type MailingList struct {
	Address string `json:"address"`
	ListID  string `json:"list-id"`
	SID     string `json:"sid"`
}

func (MailingList) MarshalEasyJSON

func (v MailingList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MailingList) MarshalJSON

func (v MailingList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MailingList) UnmarshalEasyJSON

func (v *MailingList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MailingList) UnmarshalJSON

func (v *MailingList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MailingListError

type MailingListError struct {
	Message string
}

func (MailingListError) MarshalEasyJSON

func (v MailingListError) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MailingListError) MarshalJSON

func (v MailingListError) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MailingListError) UnmarshalEasyJSON

func (v *MailingListError) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MailingListError) UnmarshalJSON

func (v *MailingListError) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MailingListMember

type MailingListMember struct {
	Subscribed bool
	Address    string
	Name       string
	Vars       []string
}

func (MailingListMember) MarshalEasyJSON

func (v MailingListMember) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MailingListMember) MarshalJSON

func (v MailingListMember) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MailingListMember) UnmarshalEasyJSON

func (v *MailingListMember) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MailingListMember) UnmarshalJSON

func (v *MailingListMember) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Message

type Message struct {
	Headers     MessageHeaders `json:"headers"`
	Attachments []Attachment   `json:"attachments"`
	Recipients  []string       `json:"recipients"`
	Size        int            `json:"size"`
}

func (Message) MarshalEasyJSON

func (v Message) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Message) MarshalJSON

func (v Message) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Message) UnmarshalEasyJSON

func (v *Message) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Message) UnmarshalJSON

func (v *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type MessageHeaders

type MessageHeaders struct {
	To        string `json:"to"`
	MessageID string `json:"message-id"`
	From      string `json:"from"`
	Subject   string `json:"subject"`
}

func (MessageHeaders) MarshalEasyJSON

func (v MessageHeaders) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (MessageHeaders) MarshalJSON

func (v MessageHeaders) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*MessageHeaders) UnmarshalEasyJSON

func (v *MessageHeaders) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*MessageHeaders) UnmarshalJSON

func (v *MessageHeaders) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (Opened) MarshalEasyJSON

func (v Opened) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Opened) MarshalJSON

func (v Opened) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Opened) UnmarshalEasyJSON

func (v *Opened) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Opened) UnmarshalJSON

func (v *Opened) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Paging

type Paging struct {
	First    string `json:"first,omitempty"`
	Next     string `json:"next,omitempty"`
	Previous string `json:"previous,omitempty"`
	Last     string `json:"last,omitempty"`
}

func (Paging) MarshalEasyJSON

func (v Paging) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Paging) MarshalJSON

func (v Paging) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Paging) UnmarshalEasyJSON

func (v *Paging) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Paging) UnmarshalJSON

func (v *Paging) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RawJSON

type RawJSON []byte

func (*RawJSON) UnmarshalJSON

func (v *RawJSON) UnmarshalJSON(data []byte) error

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"`
}

func (Rejected) MarshalEasyJSON

func (v Rejected) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Rejected) MarshalJSON

func (v Rejected) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Rejected) UnmarshalEasyJSON

func (v *Rejected) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Rejected) UnmarshalJSON

func (v *Rejected) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Response

type Response struct {
	Items  []RawJSON `json:"items"`
	Paging Paging    `json:"paging"`
}

func (Response) MarshalEasyJSON

func (v Response) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Response) MarshalJSON

func (v Response) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Response) UnmarshalEasyJSON

func (v *Response) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Response) UnmarshalJSON

func (v *Response) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Storage

type Storage struct {
	Key string `json:"key"`
	URL string `json:"url"`
}

func (Storage) MarshalEasyJSON

func (v Storage) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Storage) MarshalJSON

func (v Storage) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Storage) UnmarshalEasyJSON

func (v *Storage) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Storage) UnmarshalJSON

func (v *Storage) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Stored

type Stored struct {
	Generic

	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"`
}

func (Stored) MarshalEasyJSON

func (v Stored) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Stored) MarshalJSON

func (v Stored) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Stored) UnmarshalEasyJSON

func (v *Stored) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Stored) UnmarshalJSON

func (v *Stored) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

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"`
}

func (Unsubscribed) MarshalEasyJSON

func (v Unsubscribed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Unsubscribed) MarshalJSON

func (v Unsubscribed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Unsubscribed) UnmarshalEasyJSON

func (v *Unsubscribed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Unsubscribed) UnmarshalJSON

func (v *Unsubscribed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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