Categorygithub.com/cloudevents/sdk-go/protocol/pubsub/v2
modulepackage
2.15.2
Repository: https://github.com/cloudevents/sdk-go.git
Documentation: pkg.go.dev

# Packages

Package context provides the pubsub ProtocolContext.

# Functions

AllowCreateSubscription sets if the transport can create a subscription if it does not exist.
AllowCreateTopic sets if the transport can create a topic if it does not exist.
No description provided by the author
New creates a new pubsub transport.
NewMessage returns a binding.Message with data and attributes.
WithClient sets the pubsub client for pubsub transport.
WithCustomAttributes sets Message Attributes without any CloudEvent logic.
WithFilter sets the subscription filter for pubsub transport.
WithFilterFromEnv sets the subscription filter for pubsub transport from a given environment variable name.
WithMessageOrdering enables message ordering for all topics and subscriptions.
WithMessageOrderingFromDefaultEnv enables message ordering for all topics and subscriptions from the environment variable named 'PUBSUB_MESSAGE_ORDERING'.
WithMessageOrderingFromEnv enables message ordering for all topics and subscriptions from a given environment variable name.
WithOrderingKey allows to set the Pub/Sub ordering key for publishing events.
WithProjectID sets the project ID for pubsub transport.
WithProjectIDFromDefaultEnv sets the project ID for pubsub transport from the environment variable named 'GOOGLE_CLOUD_PROJECT'.
WithProjectIDFromEnv sets the project ID for pubsub transport from a given environment variable name.
WithReceiveSettings sets the Pubsub ReceiveSettings for pull subscriptions.
WithSubscriptionAndTopicID sets the subscription and topic IDs for pubsub transport.
WithSubscriptionID sets the subscription ID for pubsub transport.
WithSubscriptionIDAndFilter sets the subscription and topic IDs for pubsub transport.
WithSubscriptionIDFromDefaultEnv sets the subscription ID for pubsub transport from the environment variable named 'PUBSUB_SUBSCRIPTION'.
WithSubscriptionIDFromEnv sets the subscription ID for pubsub transport from a given environment variable name.
WithSubscriptionTopicIDAndFilter sets the subscription with filter option and topic IDs for pubsub transport.
WithTopicID sets the topic ID for pubsub transport.
WithTopicIDFromDefaultEnv sets the topic ID for pubsub transport from the environment variable named 'PUBSUB_TOPIC'.
WithTopicIDFromEnv sets the topic ID for pubsub transport from a given environment variable name.
WritePubSubMessage fills the provided pubsubMessage with the message m.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Message represents a Pub/Sub message.
Protocol acts as both a pubsub topic and a pubsub subscription .

# Type aliases

Option is the function signature required to be considered an pubsub.Option.