Documentation ¶
Overview ¶
Package pubsub_go TODO: Description
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { IsLocal bool ProjectID string PublishSettings PublishSettings ReceiveSettings ReceiveSettings ServiceAccountFilePath string }
Config provides the information needed to securely connect to Google Cloud's PubSub and to configure any publishing and subscription options.
type PubSub ¶
type PubSub struct {
// contains filtered or unexported fields
}
PubSub provides a wrapper client for Google Cloud's PubSub for publishing messages to a topic and receiving messages from a subscription.
func (*PubSub) CreateSubscriptions ¶ added in v1.0.1
func (ps *PubSub) CreateSubscriptions(tid string, sids map[string]string, cfg *SubscriptionConfig) error
Create Subscriptions for a Topic based on a map of Subscription Name and Filter
func (*PubSub) CreateTopic ¶ added in v1.0.1
func (ps *PubSub) CreateTopic(tid string, cfg *TopicConfig) error
Create a Topic in Google PubSub if not exist
type PublishSettings ¶
type PublishSettings struct {
Settings pubsub.PublishSettings
}
PublishSettings is an extension of Google PubSub's PublishSettings that enables further configuration for publishing messages to a topic.
type ReceiveSettings ¶
type ReceiveSettings struct {
Settings pubsub.ReceiveSettings
}
ReceiveSettings is an extension of Google PubSub's ReceiveSettings that enables further configuration for receiving messages from a subscription.
type SubscriptionConfig ¶ added in v1.0.1
type SubscriptionConfig struct {
Settings pubsub.SubscriptionConfig
}
SubscriptionConfig is an extension of Google PubSub's SubscriptionConfig that enables further configuration for a subscription of a topic
type TopicConfig ¶ added in v1.0.1
type TopicConfig struct {
Settings pubsub.TopicConfig
}
TopicConfig is an extension of Google PubSub's TopicConfig that enables further configuration for a topic