Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NumFrom ¶
NumFrom string to map a path or proxy name to a port number. The number returned will be in the range min < x < 65536
func PathNameFrom ¶
PathNameFrom returns the path name from proxy name str
func ProxyNameFrom ¶
ProxyNameFrom returns the proxy name normalized from str
Types ¶
type ProxyStore ¶
type ProxyStore struct {
// contains filtered or unexported fields
}
ProxyStore stores our proxies in an efficient fashion for path prefix matching
func New ¶
func New(root url.URL, sep string) *ProxyStore
New returns a store of proxies. Proxies are stored by path even though proxies are named sans forward slashes.
func (*ProxyStore) Get ¶
func (s *ProxyStore) Get(path string) *toxy.Proxy
Get a proxy by path prefix
Click to show internal directories.
Click to hide internal directories.