Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidIP = errors.New("invalid textual representation of an IP address")
Functions ¶
func IPMatch ¶
IPMatch determines whether IP address 'ip' matches the IP CIDR pattern.
For example, "192.168.2.123" matches "192.168.2.0/24".
func KeyMatch ¶
KeyMatch determines whether key1 matches the pattern of key2 (similar to RESTful path), key2 can contain a *.
For example, "/foo/bar" matches "/foo/*".
func ToExtensionFunc ¶
func ToExtensionFunc(funcName string, fn Func) core.ExtensionFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.