Documentation ¶
Overview ¶
Package pubsub contains helpers for Google Cloud Pub/Sub.
Index ¶
- func CreateSubscription(pubsubCli *pubsub.Client, topic *pubsub.Topic, f *framework.Framework) *pubsub.Subscription
- func CreateTopic(pubsubCli *pubsub.Client, f *framework.Framework) *pubsub.Topic
- func DeleteSubscription(pubsubCli *pubsub.Client, subsID string)
- func DeleteTopic(pubsubCli *pubsub.Client, topicID string)
- func SendMessage(pubsubCli *pubsub.Client, topicID string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSubscription ¶
func CreateSubscription(pubsubCli *pubsub.Client, topic *pubsub.Topic, f *framework.Framework) *pubsub.Subscription
CreateSubscription creates a subscription for the given Pub/Sub topic.
func CreateTopic ¶
CreateTopic creates a Pub/Sub topic named after the given framework.Framework.
func DeleteSubscription ¶
DeleteSubscription deletes the Pub/Sub subscription with the given name.
func DeleteTopic ¶
DeleteTopic deletes the Pub/Sub topic with the given name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.