package
0.0.4-beta
Repository: https://github.com/zepellin/go-cloud.git
Documentation: pkg.go.dev

# Functions

Dial opens a gRPC connection to the GCP Pub Sub API.
OpenSubscription returns a *pubsub.Subscription backed by an existing GCP PubSub subscription subscriptionName in the given projectID.
OpenSubscriptionByPath returns a *pubsub.Subscription backed by an existing GCP PubSub subscription.
OpenTopic returns a *pubsub.Topic backed by an existing GCP PubSub topic in the given projectID.
OpenTopicByPath returns a *pubsub.Topic backed by an existing GCP PubSub topic.
PublisherClient returns a *raw.PublisherClient that can be used in OpenTopic.
SubscriberClient returns a *raw.SubscriberClient that can be used in OpenSubscription.

# Constants

Scheme is the URL scheme gcppubsub registers its URLOpeners under on pubsub.DefaultMux.

# Variables

Set holds Wire providers for this package.

# Structs

SubscriptionOptions will contain configuration for subscriptions.
TopicOptions will contain configuration for topics.
URLOpener opens GCP Pub/Sub URLs like "gcppubsub://projects/myproject/topics/mytopic" for topics or "gcppubsub://projects/myproject/subscriptions/mysub" for subscriptions.