Documentation
¶
Overview ¶
Package gocloud provides a pubsub broker for Go Cloud. Go Cloud offers cloud-agnostic interface for a variety of common cloud APIs. See https://github.com/google/go-cloud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GCPProjectID ¶
GCPProjectID is a broker Option that provides a project ID for Go Cloud's Google Pub/Sub implementation.
func GCPTokenSource ¶
func GCPTokenSource(ts gcp.TokenSource) broker.Option
GCPTokenSource is a broker Option that provides a TokenSource for Go Cloud's Google Pub/Sub implementation.
func NewBroker ¶
NewBroker creates a new gocloud pubsubBroker. If the GCPProjectID option is set, Go Cloud uses its Google Cloud PubSub implementation. If the RabbitURL option is set, Go Cloud uses its RabbitMQ implementation. Otherwise, Go Cloud uses its in-memory implementation.
Types ¶
This section is empty.