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

Method OpenSubscriptionURL

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

Source from the content-addressed store, hash-verified

80}
81
82func (o *defaultDialer) OpenSubscriptionURL(ctx context.Context, u *url.URL) (*pubsub.Subscription, error) {
83 opener, err := o.defaultConn(ctx)
84 if err != nil {
85 return nil, fmt.Errorf("open subscription %v: failed to open default connection: %w", u, err)
86 }
87 return opener.OpenSubscriptionURL(ctx, u)
88}
89
90// Scheme is the URL scheme rabbitpubsub registers its URLOpeners under on pubsub.DefaultMux.
91const Scheme = "rabbit"

Callers

nothing calls this directly

Calls 2

defaultConnMethod · 0.95
OpenSubscriptionURLMethod · 0.65

Tested by

no test coverage detected