Versions in this module Expand all Collapse all v1 v1.0.2 Apr 25, 2024 v1.0.1 Apr 24, 2024 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 Edge struct + type IndexMatcher interface + Match func(input string) []uint32 + type MatchType struct + type Matcher interface + Match func(string) bool + String func() string + 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)