OpenSubscriptionURL dispatches the URL to the opener that is registered with the URL's scheme. OpenSubscriptionURL is safe to call from multiple goroutines.
(ctx context.Context, u *url.URL)
| 913 | // OpenSubscriptionURL dispatches the URL to the opener that is registered with the |
| 914 | // URL's scheme. OpenSubscriptionURL is safe to call from multiple goroutines. |
| 915 | func (mux *URLMux) OpenSubscriptionURL(ctx context.Context, u *url.URL) (*Subscription, error) { |
| 916 | opener, err := mux.subscriptionSchemes.FromURL("Subscription", u) |
| 917 | if err != nil { |
| 918 | return nil, err |
| 919 | } |
| 920 | return opener.(SubscriptionURLOpener).OpenSubscriptionURL(ctx, u) |
| 921 | } |
| 922 | |
| 923 | var defaultURLMux = &URLMux{} |
| 924 |
nothing calls this directly
no test coverage detected