MCPcopy Create free account
hub / github.com/google/go-cloud / NewTopicWithOptions

Function NewTopicWithOptions

pubsub/mempubsub/mem.go:147–152  ·  view source on GitHub ↗

NewTopicWithOptions is similar to NewTopic, but supports TopicOptions.

(opts *TopicOptions)

Source from the content-addressed store, hash-verified

145
146// NewTopicWithOptions is similar to NewTopic, but supports TopicOptions.
147func NewTopicWithOptions(opts *TopicOptions) *pubsub.Topic {
148 if opts == nil {
149 opts = &TopicOptions{}
150 }
151 return pubsub.NewTopic(&topic{}, &opts.BatcherOptions)
152}
153
154// SendBatch implements driver.Topic.SendBatch.
155// It is error if the topic is closed or has no subscriptions.

Callers 1

NewTopicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected