github.com/mailgun/mailgun-go/v3@v3.6.4/events/objects.go (about) 1 package events 2 3 type ClientInfo struct { 4 AcceptLanguage string `json:"accept-language"` 5 ClientName string `json:"client-name"` 6 ClientOS string `json:"client-os"` 7 ClientType string `json:"client-type"` 8 DeviceType string `json:"device-type"` 9 IP string `json:"ip"` 10 UserAgent string `json:"user-agent"` 11 } 12 13 type GeoLocation struct { 14 City string `json:"city"` 15 Country string `json:"country"` 16 Region string `json:"region"` 17 } 18 19 type MailingList struct { 20 Address string `json:"address"` 21 ListID string `json:"list-id"` 22 SID string `json:"sid"` 23 } 24 25 type Message struct { 26 Headers MessageHeaders `json:"headers"` 27 Attachments []Attachment `json:"attachments"` 28 Recipients []string `json:"recipients"` 29 Size int `json:"size"` 30 } 31 32 type Envelope struct { 33 MailFrom string `json:"mail-from"` 34 Sender string `json:"sender"` 35 Transport string `json:"transport"` 36 Targets string `json:"targets"` 37 SendingHost string `json:"sending-host"` 38 SendingIP string `json:"sending-ip"` 39 } 40 41 type Storage struct { 42 Key string `json:"key"` 43 URL string `json:"url"` 44 } 45 46 type Flags struct { 47 IsAuthenticated bool `json:"is-authenticated"` 48 IsBig bool `json:"is-big"` 49 IsSystemTest bool `json:"is-system-test"` 50 IsTestMode bool `json:"is-test-mode"` 51 IsDelayedBounce bool `json:"is-delayed-bounce"` 52 } 53 54 type Attachment struct { 55 FileName string `json:"filename"` 56 ContentType string `json:"content-type"` 57 Size int `json:"size"` 58 } 59 60 type MessageHeaders struct { 61 To string `json:"to"` 62 MessageID string `json:"message-id"` 63 From string `json:"from"` 64 Subject string `json:"subject"` 65 } 66 67 type Campaign struct { 68 ID string `json:"id"` 69 Name string `json:"name"` 70 } 71 72 type DeliveryStatus struct { 73 Code int `json:"code"` 74 AttemptNo int `json:"attempt-no"` 75 Description string `json:"description"` 76 Message string `json:"message"` 77 SessionSeconds float64 `json:"session-seconds"` 78 }