Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Attributes map[string]string `json:"attributes,omitempty"` // Attributes for this message. Data []byte `json:"data,omitempty"` // The binary data in the message. MessageID *string `json:"messageId,omitempty"` // ID of this message, assigned by the server when the message is published.; Guaranteed to be unique within the topic. PublishTime *string `json:"publishTime,omitempty"` // The time at which the message was published, populated by the server when; it receives the `Publish` call. }
Message: The message that was published.
type MessagePublishedData ¶
type MessagePublishedData struct { Message *Message `json:"message,omitempty"` // The message that was published. Subscription *string `json:"subscription,omitempty"` // The resource name of the subscription for which this event was; generated. The format of the value is; `projects/{project-id}/subscriptions/{subscription-id}`. }
MessagePublishedData: The event data when a message is published to a topic.
Click to show internal directories.
Click to hide internal directories.