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

Method OpenSubscriptionURL

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

Source from the content-addressed store, hash-verified

169}
170
171func (o *lazyCredsOpener) OpenSubscriptionURL(ctx context.Context, u *url.URL) (*pubsub.Subscription, error) {
172 opener, err := o.defaultConn(ctx)
173 if err != nil {
174 return nil, fmt.Errorf("open subscription %v: failed to open default connection: %v", u, err)
175 }
176 return opener.OpenSubscriptionURL(ctx, u)
177}
178
179// Scheme is the URL scheme gcppubsub registers its URLOpeners under on pubsub.DefaultMux.
180const Scheme = "gcppubsub"

Callers

nothing calls this directly

Calls 2

defaultConnMethod · 0.95
OpenSubscriptionURLMethod · 0.65

Tested by

no test coverage detected