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

Function subscriptionPath

pubsub/gcppubsubv2/gcppubsub_test.go:65–67  ·  view source on GitHub ↗
(subName string)

Source from the content-addressed store, hash-verified

63 return fmt.Sprintf("projects/%s/topics/%s", projectID, topicName)
64}
65func subscriptionPath(subName string) string {
66 return fmt.Sprintf("projects/%s/subscriptions/%s", projectID, subName)
67}
68
69func createTopic(ctx context.Context, client *raw.Client, topicName string) (dt driver.Topic, cleanup func(), err error) {
70 _, err = client.TopicAdminClient.CreateTopic(ctx, &pubsubpb.Topic{Name: topicPath(topicName)})

Callers 2

createSubscriptionFunction · 0.85
deleteSubscriptionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected