Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPRangeList ¶
type IPRangeList struct {
Ranges []*IPRange
}
func NewIPRangeList ¶
func NewIPRangeList() *IPRangeList
func ParseIPRangeList ¶
func ParseIPRangeList(value string) *IPRangeList
func (*IPRangeList) Contains ¶
func (this *IPRangeList) Contains(ip string) bool
type IPRangeType ¶
type IPRangeType = string
const ( IPRangeTypeCIDR IPRangeType = "cidr" // CIDR IPRangeTypeSingeIP IPRangeType = "singleIP" // 单个IP IPRangeTypeRange IPRangeType = "range" // IP范围,IP1-IP2 )
type NumberList ¶
func NewNumberList ¶
func NewNumberList() *NumberList
func ParseNumberList ¶
func ParseNumberList(v string) *NumberList
func (*NumberList) Contains ¶
func (this *NumberList) Contains(f float64) bool
type StringList ¶
func NewStringList ¶
func NewStringList(caseInsensitive bool) *StringList
func ParseStringList ¶
func ParseStringList(v string, caseInsensitive bool) *StringList
func (*StringList) Contains ¶
func (this *StringList) Contains(f string) bool
Click to show internal directories.
Click to hide internal directories.