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

Method OpenSubscriptionURL

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

defaultConnMethod · 0.95
OpenSubscriptionURLMethod · 0.65

Tested by

no test coverage detected