Documentation ¶
Index ¶
- Constants
- func ContainsNetAddr(ns []iplib.Net, ipstr string) bool
- func ParseIpNet(d string) (inet iplib.Net, err error)
- type DomainList
- func (l *DomainList) Add(matchType string, name string) bool
- func (l *DomainList) Clear()
- func (l *DomainList) ForEach(f func(name string), max int)
- func (l *DomainList) FullLen() int
- func (l *DomainList) InitDomainData(matchType string, items []string)
- func (l *DomainList) Match(matchType, name string) bool
- func (l *DomainList) MatchDomain(name string) bool
- func (l *DomainList) MatchFull(name string) bool
- func (l *DomainList) MatchRegex(name string) bool
- func (l *DomainList) MixMatch(name string) bool
- func (l *DomainList) RegexLen() int
- type NetList
- func (l *NetList) Add(inet iplib.Net)
- func (l *NetList) AddByString(nstr string) bool
- func (l *NetList) Clear()
- func (l *NetList) FindNet(lookingFor iplib.Net) iplib.Net
- func (l *NetList) ForEach(f func(net iplib.Net), max int)
- func (l *NetList) Len() int
- func (l *NetList) MatchNet(lookingFor iplib.Net) bool
- func (l *NetList) Sort()
Constants ¶
View Source
const ( MatchFullType = "full" MatchDomainType = "domain" MatchRegexType = "regex" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DomainList ¶
func NewDomainList ¶
func NewDomainList() *DomainList
func (*DomainList) Clear ¶
func (l *DomainList) Clear()
func (*DomainList) ForEach ¶
func (l *DomainList) ForEach(f func(name string), max int)
func (*DomainList) FullLen ¶
func (l *DomainList) FullLen() int
func (*DomainList) InitDomainData ¶
func (l *DomainList) InitDomainData(matchType string, items []string)
func (*DomainList) Match ¶
func (l *DomainList) Match(matchType, name string) bool
func (*DomainList) MatchDomain ¶
func (l *DomainList) MatchDomain(name string) bool
func (*DomainList) MatchFull ¶
func (l *DomainList) MatchFull(name string) bool
func (*DomainList) MatchRegex ¶
func (l *DomainList) MatchRegex(name string) bool
func (*DomainList) MixMatch ¶
func (l *DomainList) MixMatch(name string) bool
func (*DomainList) RegexLen ¶
func (l *DomainList) RegexLen() int
Click to show internal directories.
Click to hide internal directories.