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

Method OpenTopicURL

pubsub/rabbitpubsub/rabbit.go:74–80  ·  view source on GitHub ↗
(ctx context.Context, u *url.URL)

Source from the content-addressed store, hash-verified

72}
73
74func (o *defaultDialer) OpenTopicURL(ctx context.Context, u *url.URL) (*pubsub.Topic, error) {
75 opener, err := o.defaultConn(ctx)
76 if err != nil {
77 return nil, fmt.Errorf("open topic %v: failed to open default connection: %w", u, err)
78 }
79 return opener.OpenTopicURL(ctx, u)
80}
81
82func (o *defaultDialer) OpenSubscriptionURL(ctx context.Context, u *url.URL) (*pubsub.Subscription, error) {
83 opener, err := o.defaultConn(ctx)

Callers

nothing calls this directly

Calls 2

defaultConnMethod · 0.95
OpenTopicURLMethod · 0.65

Tested by

no test coverage detected