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

Function openTopic

pubsub/gcppubsubv2/gcppubsub.go:357–359  ·  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.

(publisher *raw.Publisher)

Source from the content-addressed store, hash-verified

355// openTopic returns the driver for OpenTopic. This function exists so the test
356// harness can get the driver interface implementation if it needs to.
357func openTopic(publisher *raw.Publisher) driver.Topic {
358 return &topic{publisher}
359}
360
361// SendBatch implements driver.Topic.SendBatch.
362func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) error {

Callers 3

createTopicFunction · 0.70
MakeNonexistentTopicMethod · 0.70
OpenTopicFunction · 0.70

Calls

no outgoing calls

Tested by 2

createTopicFunction · 0.56
MakeNonexistentTopicMethod · 0.56