(ctx context.Context, u *url.URL)
| 169 | } |
| 170 | |
| 171 | func (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. |
| 180 | const Scheme = "gcppubsub" |
nothing calls this directly
no test coverage detected