OpenTopicURL dispatches the URL to the opener that is registered with the URL's scheme. OpenTopicURL is safe to call from multiple goroutines.
(ctx context.Context, u *url.URL)
| 903 | // OpenTopicURL dispatches the URL to the opener that is registered with the |
| 904 | // URL's scheme. OpenTopicURL is safe to call from multiple goroutines. |
| 905 | func (mux *URLMux) OpenTopicURL(ctx context.Context, u *url.URL) (*Topic, error) { |
| 906 | opener, err := mux.topicSchemes.FromURL("Topic", u) |
| 907 | if err != nil { |
| 908 | return nil, err |
| 909 | } |
| 910 | return opener.(TopicURLOpener).OpenTopicURL(ctx, u) |
| 911 | } |
| 912 | |
| 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. |
nothing calls this directly
no test coverage detected