Documentation ¶
Index ¶
- Constants
- Variables
- type GT
- type IterFunc
- type Matcher
- func (matcher *Matcher) Delete(netloc *netloc.Netloc) (*netloc.Netloc, interface{})
- func (matcher *Matcher) Get(netloc *netloc.Netloc) (*netloc.Netloc, interface{})
- func (matcher *Matcher) Iter(f func(*netloc.Netloc, interface{}) bool)
- func (matcher *Matcher) Load(netloc *netloc.Netloc, rule interface{}) (*netloc.Netloc, interface{})
- func (matcher *Matcher) LoadFromString(s string, rule interface{}) (n *netloc.Netloc, r interface{}, e error)
- func (matcher *Matcher) LoadFromURI(uri string, rule interface{}) (n *netloc.Netloc, r interface{}, e error)
- func (matcher *Matcher) LoadWithCmp(netloc *netloc.Netloc, rule interface{}, cmp GT) (*netloc.Netloc, interface{})
- func (matcher *Matcher) Match(host, port, scheme string) (*netloc.Netloc, interface{})
- func (matcher *Matcher) MatchHost(host string) (*netloc.Netloc, interface{})
- func (matcher *Matcher) MatchHostPort(host, port string) (*netloc.Netloc, interface{})
- func (matcher *Matcher) MatchURL(URL string) (*netloc.Netloc, interface{})
- func (matcher *Matcher) Size() int
Constants ¶
View Source
const ( Empty = "" Dot = "." Colon = ":" Star = "*" )
Const TODO
View Source
const ( ByteDot byte = '.' ByteColon byte = ':' ByteStar byte = '*' )
Const TODO
Variables ¶
View Source
var DefaultPort = map[string]string{
"http": "80",
"https": "443",
"ssh": "22",
"ftp": "21",
}
DefaultPort TODO
View Source
var Nil = newNetlocRule(nil, nil)
Nil TODO
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
Matcher TODO
func (*Matcher) LoadFromString ¶ added in v0.0.3
func (matcher *Matcher) LoadFromString(s string, rule interface{}) (n *netloc.Netloc, r interface{}, e error)
LoadFromString TODO
func (*Matcher) LoadFromURI ¶ added in v0.0.3
func (matcher *Matcher) LoadFromURI(uri string, rule interface{}) (n *netloc.Netloc, r interface{}, e error)
LoadFromURI TODO
func (*Matcher) LoadWithCmp ¶
func (matcher *Matcher) LoadWithCmp(netloc *netloc.Netloc, rule interface{}, cmp GT) (*netloc.Netloc, interface{})
LoadWithCmp TODO
func (*Matcher) MatchHostPort ¶
MatchHostPort TODO
Click to show internal directories.
Click to hide internal directories.