Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClientOpts []option.ClientOption PublishSettingsFunc func(*pubsub.PublishSettings) TopicConfig *pubsub.TopicConfigToUpdate CreateTopic bool DeleteTopic bool }
Config represents publisher configuration.
type Option ¶
type Option func(*Config)
Option is publisher Option
func WithClientOptions ¶
func WithClientOptions(opts ...option.ClientOption) Option
WithClientOptions returns an Option that set option.ClientOption implementation(s).
func WithCreateTopicIfNeeded ¶
func WithCreateTopicIfNeeded() Option
func WithDeleteTopicOnClose ¶
func WithDeleteTopicOnClose() Option
func WithPublishSettings ¶
func WithPublishSettings(f func(*pubsub.PublishSettings)) Option
WithPublishSettings returns an Option that set pubsub.PublishSettings to the pubsub.Topic.
func WithUpdateTopicConfig ¶
func WithUpdateTopicConfig(cfg pubsub.TopicConfigToUpdate) Option
WithUpdateTopicConfig returns an Option that update configuration for pubsub.Topic.
Click to show internal directories.
Click to hide internal directories.