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

Function OpenTopic

pubsub/pubsub.go:937–939  ·  view source on GitHub ↗

OpenTopic opens the Topic identified by the URL given. See the URLOpener documentation in driver subpackages for details on supported URL formats, and https://gocloud.dev/concepts/urls for more information.

(ctx context.Context, urlstr string)

Source from the content-addressed store, hash-verified

935// details on supported URL formats, and https://gocloud.dev/concepts/urls
936// for more information.
937func OpenTopic(ctx context.Context, urlstr string) (*Topic, error) {
938 return defaultURLMux.OpenTopic(ctx, urlstr)
939}
940
941// OpenSubscription opens the Subscription identified by the URL given.
942// See the URLOpener documentation in driver subpackages for

Callers 15

setupFunction · 0.92
ExecuteMethod · 0.92
ExampleTopic_AsFunction · 0.92
ExampleTopic_ErrorAsFunction · 0.92
TestOpenTopicFromURLFunction · 0.92
Example_openTopicFromURLFunction · 0.92
TestOpenTopicFromURLFunction · 0.92
Example_openTopicFromURLFunction · 0.92
TestOpenTopicFromURLFunction · 0.92
Example_openTopicFromURLFunction · 0.92
TestOpenTopicFromURLFunction · 0.92

Calls 1

OpenTopicMethod · 0.80

Tested by 15

ExampleTopic_AsFunction · 0.74
ExampleTopic_ErrorAsFunction · 0.74
TestOpenTopicFromURLFunction · 0.74
Example_openTopicFromURLFunction · 0.74
TestOpenTopicFromURLFunction · 0.74
Example_openTopicFromURLFunction · 0.74
TestOpenTopicFromURLFunction · 0.74
Example_openTopicFromURLFunction · 0.74
TestOpenTopicFromURLFunction · 0.74