(ctx context.Context, u *url.URL)
| 172 | } |
| 173 | |
| 174 | func (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. |
| 183 | const Scheme = "gcppubsubv2" |
nothing calls this directly
no test coverage detected