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)
| 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. |
| 367 | func openTopic(client *raw.PublisherClient, topicPath string) driver.Topic { |
| 368 | return &topic{topicPath, client} |
| 369 | } |
| 370 | |
| 371 | // SendBatch implements driver.Topic.SendBatch. |
| 372 | func (t *topic) SendBatch(ctx context.Context, dms []*driver.Message) error { |
no outgoing calls