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

Method OpenTopicURL

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

defaultConnMethod · 0.95
OpenTopicURLMethod · 0.65

Tested by

no test coverage detected