MCPcopy Create free account
hub / github.com/google/go-cloud / URLMux

Struct URLMux

pubsub/pubsub.go:852–855  ·  view source on GitHub ↗

URLMux is a URL opener multiplexer. It matches the scheme of the URLs against a set of registered schemes and calls the opener that matches the URL's scheme. See https://gocloud.dev/concepts/urls/ for more information. The zero value is a multiplexer with no registered schemes.

Source from the content-addressed store, hash-verified

850//
851// The zero value is a multiplexer with no registered schemes.
852type URLMux struct {
853 subscriptionSchemes openurl.SchemeMap
854 topicSchemes openurl.SchemeMap
855}
856
857// TopicSchemes returns a sorted slice of the registered Topic schemes.
858func (mux *URLMux) TopicSchemes() []string { return mux.topicSchemes.Schemes() }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected