pubsub

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

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