Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDetectorTypesImplementing ¶
func DefaultDetectorTypesImplementing[T any]() map[detectorspb.DetectorType]struct{}
func DefaultDetectors ¶
Types ¶
type DefaultDetectorKeywordMatcher ¶
type DefaultDetectorKeywordMatcher struct {
// contains filtered or unexported fields
}
DefaultDetectorKeywordMatcher encapsulates the Aho-Corasick trie for keyword matching.
func NewDefaultDetectorKeywordMatcher ¶
func NewDefaultDetectorKeywordMatcher() *DefaultDetectorKeywordMatcher
NewDefaultDetectorKeywordMatcher creates a new DefaultDetectorKeywordMatcher.
func (*DefaultDetectorKeywordMatcher) FindKeywords ¶
func (km *DefaultDetectorKeywordMatcher) FindKeywords(text []byte) []string
FindKeywords scans the input text and returns a slice of matched keywords.
Click to show internal directories.
Click to hide internal directories.