Versions in this module Expand all Collapse all v4 v4.41.0 Jun 24, 2021 Changes in this version + const FailEdge + const PrimeRK + const TrieEdge + func RollingHash(s string) uint32 + type ACAutomaton struct + func NewACAutomaton() *ACAutomaton + func (ac *ACAutomaton) Add(domain string, t Type) + func (ac *ACAutomaton) Build() + func (ac *ACAutomaton) Match(s string) bool + type DomainMatcherGroup struct + func (g *DomainMatcherGroup) Add(domain string, value uint32) + func (g *DomainMatcherGroup) Match(domain string) []uint32 + type Edge struct + type FullMatcherGroup struct + func (g *FullMatcherGroup) Add(domain string, value uint32) + func (g *FullMatcherGroup) Match(str string) []uint32 + type IndexMatcher interface + Match func(input string) []uint32 + type MatchType struct + type Matcher interface + Match func(string) bool + String func() string + type MatcherGroup struct + func (g *MatcherGroup) Add(m Matcher) uint32 + func (g *MatcherGroup) Match(pattern string) []uint32 + func (g *MatcherGroup) Size() uint32 + type MphMatcherGroup struct + func NewMphMatcherGroup() *MphMatcherGroup + func (g *MphMatcherGroup) AddFullOrDomainPattern(pattern string, t Type) + func (g *MphMatcherGroup) AddPattern(pattern string, t Type) (uint32, error) + func (g *MphMatcherGroup) Build() + func (g *MphMatcherGroup) Lookup(h uint32, s string) bool + func (g *MphMatcherGroup) Match(pattern string) []uint32 + type Type byte + const Domain + const Full + const Regex + const Substr + func (t Type) New(pattern string) (Matcher, error)