Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ValidDomainChars = trie.NewValidChars([]byte("0123456789abcdefghijklmnopqrstuvwxyz-.^"))
Functions ¶
func ToSuffixTrieString ¶
func ToSuffixTrieStrings ¶
Types ¶
type AhocorasickSlimtrie ¶
type AhocorasickSlimtrie struct {
// contains filtered or unexported fields
}
func NewAhocorasickSlimtrie ¶
func NewAhocorasickSlimtrie(log *logrus.Logger, bitLength int) *AhocorasickSlimtrie
func (*AhocorasickSlimtrie) AddSet ¶
func (n *AhocorasickSlimtrie) AddSet(bitIndex int, patterns []string, typ consts.RoutingDomainKey)
func (*AhocorasickSlimtrie) Build ¶
func (n *AhocorasickSlimtrie) Build() (err error)
func (*AhocorasickSlimtrie) MatchDomainBitmap ¶
func (n *AhocorasickSlimtrie) MatchDomainBitmap(domain string) (bitmap []uint32)
type Bruteforce ¶
type Bruteforce struct {
// contains filtered or unexported fields
}
func NewBruteforce ¶
func NewBruteforce(bitLength int) *Bruteforce
func (*Bruteforce) AddSet ¶
func (n *Bruteforce) AddSet(bitIndex int, patterns []string, typ consts.RoutingDomainKey)
func (*Bruteforce) Build ¶
func (n *Bruteforce) Build() error
func (*Bruteforce) MatchDomainBitmap ¶
func (n *Bruteforce) MatchDomainBitmap(domain string) (bitmap []uint32)
type GoRegexpNfa ¶
type GoRegexpNfa struct {
// contains filtered or unexported fields
}
func NewGoRegexpNfa ¶
func NewGoRegexpNfa(bitLength int) *GoRegexpNfa
func (*GoRegexpNfa) AddSet ¶
func (n *GoRegexpNfa) AddSet(bitIndex int, patterns []string, typ consts.RoutingDomainKey)
func (*GoRegexpNfa) Build ¶
func (n *GoRegexpNfa) Build() error
func (*GoRegexpNfa) MatchDomainBitmap ¶
func (n *GoRegexpNfa) MatchDomainBitmap(domain string) (bitmap []uint32)
Click to show internal directories.
Click to hide internal directories.