defaults

package
v3.84.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2024 License: AGPL-3.0 Imports: 818 Imported by: 8

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

func DefaultDetectors() []detectors.Detector

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL