OpenTopic calls OpenTopicURL with the URL parsed from urlstr. OpenTopic is safe to call from multiple goroutines.
(ctx context.Context, urlstr string)
| 883 | // OpenTopic calls OpenTopicURL with the URL parsed from urlstr. |
| 884 | // OpenTopic is safe to call from multiple goroutines. |
| 885 | func (mux *URLMux) OpenTopic(ctx context.Context, urlstr string) (*Topic, error) { |
| 886 | opener, u, err := mux.topicSchemes.FromString("Topic", urlstr) |
| 887 | if err != nil { |
| 888 | return nil, err |
| 889 | } |
| 890 | return opener.(TopicURLOpener).OpenTopicURL(ctx, u) |
| 891 | } |
| 892 | |
| 893 | // OpenSubscription calls OpenSubscriptionURL with the URL parsed from urlstr. |
| 894 | // OpenSubscription is safe to call from multiple goroutines. |