Documentation ¶
Index ¶
Constants ¶
const EmailLabelChangeTypeAdded = "added"
EmailLabelChangeTypeAdded indicates a label was added to a message
const EmailLabelChangeTypeRemoved = "removed"
EmailLabelChangeTypeRemoved indicates a label was removed from a message
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailLabelChange ¶
type EmailLabelChange struct { MessageID string `json:"message_id"` LabelIDs []string `json:"label_ids"` ChangeType string `json:"change_type"` }
EmailLabelChange is the payload for a label change event
type EmailLabelChanges ¶
type EmailLabelChanges struct { // Email is the email address of the user. Email string `json:"email"` // Changes is the list of label changes. Changes []EmailLabelChange `json:"changes"` }
type EmailMessages ¶
type EmailMessages struct { // Email is the email address of the user. Email string `json:"email"` // Messages is the list of messages IDs. Messages []string `json:"messages"` // Settings allow us to configure the downstream processing behavior Settings EmailMessagesSettings `json:"settings"` }
EmailMessages is the payload for messages to be processes
type EmailMessagesSettings ¶
type EmailPushNotification ¶
type EmailPushNotification struct { Email string `json:"emailAddress"` HistoryID uint64 `json:"historyId"` }
EmailPushNotification is the payload of a gmail push notification event. Note the fields are camelCase, not snake_case, because Google generates them.
type MessagePublishedData ¶
type MessagePublishedData struct {
Message PubSubMessage
}
MessagePublishedData contains the full Pub/Sub message See the documentation for more details: https://cloud.google.com/eventarc/docs/cloudevents#pubsub
type PubSubMessage ¶
type PubSubMessage struct { // Data is the message payload. Data []byte `json:"data"` }
PubSubMessage is the payload of a Pub/Sub event. See the documentation for more details: https://cloud.google.com/pubsub/docs/reference/rest/v1/PubsubMessage