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

Function openTopic

pubsub/gcppubsub/gcppubsub.go:367–369  ·  view source on GitHub ↗

openTopic returns the driver for OpenTopic. This function exists so the test harness can get the driver interface implementation if it needs to.

(client *raw.PublisherClient, topicPath string)

Source from the content-addressed store, hash-verified

365// openTopic returns the driver for OpenTopic. This function exists so the test
366// harness can get the driver interface implementation if it needs to.
367func openTopic(client *raw.PublisherClient, topicPath string) driver.Topic {
368 return &topic{topicPath, client}
369}
370
371// SendBatch implements driver.Topic.SendBatch.
372func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) error {

Callers 4

createTopicFunction · 0.70
MakeNonexistentTopicMethod · 0.70
OpenTopicFunction · 0.70
OpenTopicByPathFunction · 0.70

Calls

no outgoing calls

Tested by 2

createTopicFunction · 0.56
MakeNonexistentTopicMethod · 0.56