Versions in this module Expand all Collapse all v1 v1.1.2 Feb 15, 2022 Changes in this version + const PrimeRK + func AddMatcherToGroup(g MatcherGroup, matcher Matcher, value uint32) error + func RollingHash(s string) uint32 + type ACAutomatonMatcherGroup struct + func NewACAutomatonMatcherGroup() *ACAutomatonMatcherGroup + func (ac *ACAutomatonMatcherGroup) AddDomainMatcher(matcher DomainMatcher, value uint32) + func (ac *ACAutomatonMatcherGroup) AddFullMatcher(matcher FullMatcher, value uint32) + func (ac *ACAutomatonMatcherGroup) AddSubstrMatcher(matcher SubstrMatcher, value uint32) + func (ac *ACAutomatonMatcherGroup) Build() error + func (ac *ACAutomatonMatcherGroup) Match(input string) []uint32 + func (ac *ACAutomatonMatcherGroup) MatchAny(input string) bool + type DomainMatcher string + func (DomainMatcher) Type() Type + func (m DomainMatcher) Match(s string) bool + func (m DomainMatcher) Pattern() string + func (m DomainMatcher) String() string + type DomainMatcherGroup struct + func (g *DomainMatcherGroup) AddDomainMatcher(matcher DomainMatcher, value uint32) + func (g *DomainMatcherGroup) Match(domain string) []uint32 + func (g *DomainMatcherGroup) MatchAny(domain string) bool + type FullMatcher string + func (FullMatcher) Type() Type + func (m FullMatcher) Match(s string) bool + func (m FullMatcher) Pattern() string + func (m FullMatcher) String() string + type FullMatcherGroup struct + func (g *FullMatcherGroup) AddFullMatcher(matcher FullMatcher, value uint32) + func (g *FullMatcherGroup) Match(input string) []uint32 + func (g *FullMatcherGroup) MatchAny(input string) bool + type IndexMatcher interface + Add func(matcher Matcher) uint32 + Build func() error + Match func(input string) []uint32 + MatchAny func(input string) bool + Size func() uint32 + type LinearIndexMatcher struct + func NewLinearIndexMatcher() *LinearIndexMatcher + func (*LinearIndexMatcher) Build() error + func (g *LinearIndexMatcher) Add(matcher Matcher) uint32 + func (g *LinearIndexMatcher) Match(input string) []uint32 + func (g *LinearIndexMatcher) MatchAny(input string) bool + func (g *LinearIndexMatcher) Size() uint32 + type Matcher interface + Match func(input string) bool + Pattern func() string + String func() string + Type func() Type + type MatcherGroup interface + Match func(input string) []uint32 + MatchAny func(input string) bool + type MatcherGroupForAll interface + AddMatcher func(matcher Matcher, value uint32) + type MatcherGroupForDomain interface + AddDomainMatcher func(matcher DomainMatcher, value uint32) + type MatcherGroupForFull interface + AddFullMatcher func(matcher FullMatcher, value uint32) + type MatcherGroupForRegex interface + AddRegexMatcher func(matcher *RegexMatcher, value uint32) + type MatcherGroupForSubstr interface + AddSubstrMatcher func(matcher SubstrMatcher, value uint32) + type MphIndexMatcher struct + func NewMphIndexMatcher() *MphIndexMatcher + func (*MphIndexMatcher) Match(string) []uint32 + func (g *MphIndexMatcher) Add(matcher Matcher) uint32 + func (g *MphIndexMatcher) Build() error + func (g *MphIndexMatcher) MatchAny(input string) bool + func (g *MphIndexMatcher) Size() uint32 + type MphMatcherGroup struct + func NewMphMatcherGroup() *MphMatcherGroup + func (*MphMatcherGroup) Match(_ string) []uint32 + func (g *MphMatcherGroup) AddDomainMatcher(matcher DomainMatcher, _ uint32) + func (g *MphMatcherGroup) AddFullMatcher(matcher FullMatcher, _ uint32) + func (g *MphMatcherGroup) Build() + func (g *MphMatcherGroup) Lookup(h uint32, s string) bool + func (g *MphMatcherGroup) MatchAny(pattern string) bool + type RegexMatcher struct + func (*RegexMatcher) Type() Type + func (m *RegexMatcher) Match(s string) bool + func (m *RegexMatcher) Pattern() string + func (m *RegexMatcher) String() string + type SimpleMatcherGroup struct + func (g *SimpleMatcherGroup) AddMatcher(matcher Matcher, value uint32) + func (g *SimpleMatcherGroup) Match(input string) []uint32 + func (g *SimpleMatcherGroup) MatchAny(input string) bool + type SubstrMatcher string + func (SubstrMatcher) Type() Type + func (m SubstrMatcher) Match(s string) bool + func (m SubstrMatcher) Pattern() string + func (m SubstrMatcher) String() string + type SubstrMatcherGroup struct + func (g *SubstrMatcherGroup) AddSubstrMatcher(matcher SubstrMatcher, value uint32) + func (g *SubstrMatcherGroup) Match(input string) []uint32 + func (g *SubstrMatcherGroup) MatchAny(input string) bool + type Type byte + const Domain + const Full + const Regex + const Substr + func (t Type) New(pattern string) (Matcher, error)