Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckType ¶
type CheckType int
CheckType Checker类型
const ( //CheckTypeEqual 全等匹配Checker类型 CheckTypeEqual CheckType = iota //CheckTypePrefix 前缀匹配Checker类型 CheckTypePrefix //CheckTypeSuffix 后缀匹配Checker类型 CheckTypeSuffix //CheckTypeSub 子串匹配Checker类型 CheckTypeSub //CheckTypeNotEqual 非等匹配Checker类型 CheckTypeNotEqual //CheckTypeNone 空值匹配Checker类型 CheckTypeNone //CheckTypeExist 存在匹配Checker类型 CheckTypeExist //CheckTypeNotExist 不存在匹配Checker类型 CheckTypeNotExist //CheckTypeRegular 区分大小写的正则匹配Checker类型 CheckTypeRegular //CheckTypeRegularG 不区分大小写的正则匹配Checker类型 CheckTypeRegularG //CheckTypeAll 任意匹配Checker类型 CheckTypeAll // CheckMultiple 复合匹配 CheckMultiple CheckTypeIP )
type Handler ¶ added in v0.8.0
func NewMultipleChecker ¶ added in v0.8.0
type PrefixChecker ¶
type PrefixChecker struct {
// contains filtered or unexported fields
}
PrefixChecker 实现了Checker接口,能进行前缀匹配
type SubChecker ¶
type SubChecker struct {
// contains filtered or unexported fields
}
SubChecker 实现了Checker接口,能进行子串匹配
type SuffixChecker ¶
type SuffixChecker struct {
// contains filtered or unexported fields
}
SuffixChecker 实现了Checker接口,能进行后缀匹配
Click to show internal directories.
Click to hide internal directories.