Versions in this module Expand all Collapse all v0 v0.7.10 Mar 26, 2024 v0.7.6 Apr 28, 2019 v0.7.5 Mar 10, 2019 v0.7.4 Mar 9, 2019 v0.7.3 Mar 9, 2019 Changes in this version + var ErrDuplicateNameResolve = errors.New("Each name must resolve to a unique set of rules - duplciate found") + var ErrUnableToParse = errors.New("Unable to parse url") + func GetProtoHostPort(name string) (proto, host, port string, err error) + func IsIp4(s string) bool + func NoWild(host string) (rv string) + type CacheIP struct + Data map[string]CacheIPData + var CIp CacheIP + func (cc *CacheIP) CachedLookupIP(host string) (ip []net.IP, err error) + type CacheIPData struct + IP []net.IP + When time.Time + type IpToHostPort struct + Handler http.Handler + Host string + IPAddr string + Id int + Port string + Proto string + type NameResolve struct + Debug1 bool + Debug2 bool + Debug3 bool + Debug4 bool + Debug5 bool + IpLookup map[string]map[string]*IpToHostPort + RawLookup map[string]*IpToHostPort + func NewNameResolve() *NameResolve + func (nr *NameResolve) AddDefault(proto, port string, hdlr http.Handler, id int) (e error) + func (nr *NameResolve) AddName(namePattern string, hdlr http.Handler, id int, addrIfNone string) (e error) + func (nr *NameResolve) GetHandler(name string) (rv *IpToHostPort, ok bool) + func (nr *NameResolve) GetRawTopHandler(listen string) (Handler http.Handler, err error) + func (nr *NameResolve) ServeHTTP(www http.ResponseWriter, req *http.Request)