Documentation
¶
Overview ¶
Package gcppubsub subscribes to GCP Pub/Sub over the SDK-free cloud/gcp REST client.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(o Options) (pubsub.Subscription, error)
New builds a Subscription on an existing client.
func Open ¶
func Open(ctx commonsContext.Context, c pubsub.QueueConfig) (pubsub.Subscription, error)
Open subscribes to the subscription described by c.PubSub.
Types ¶
type Options ¶
type Options struct {
Client *gcp.PubSubClient
// Subscription is the full resource name, projects/P/subscriptions/S.
Subscription string
}
Options configures a Subscription.