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

Method OpenTopicURL

pubsub/gcppubsubv2/gcppubsub.go:166–172  ·  view source on GitHub ↗
(ctx context.Context, u *url.URL)

Source from the content-addressed store, hash-verified

164}
165
166func (o *lazyCredsOpener) OpenTopicURL(ctx context.Context, u *url.URL) (*pubsub.Topic, error) {
167 opener, err := o.defaultConn(ctx)
168 if err != nil {
169 return nil, fmt.Errorf("open topic %v: failed to open default connection: %v", u, err)
170 }
171 return opener.OpenTopicURL(ctx, u)
172}
173
174func (o *lazyCredsOpener) OpenSubscriptionURL(ctx context.Context, u *url.URL) (*pubsub.Subscription, error) {
175 opener, err := o.defaultConn(ctx)

Callers

nothing calls this directly

Calls 2

defaultConnMethod · 0.95
OpenTopicURLMethod · 0.65

Tested by

no test coverage detected