detectors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringMatchDetector

type StringMatchDetector struct {
	Match         string
	Condition     string // "contains" or "not_contains"
	CaseSensitive bool
}

StringMatchDetector implements the Detector interface for string matching

func NewStringMatchDetector

func NewStringMatchDetector(match string, condition string, caseSensitive bool) *StringMatchDetector

NewStringMatchDetector creates a new string match detector

func (*StringMatchDetector) Detect

func (d *StringMatchDetector) Detect(response string) (bool, string)

Detect checks if the response matches the detection criteria

func (*StringMatchDetector) GetInfo

func (d *StringMatchDetector) GetInfo() map[string]interface{}

GetInfo returns information about the detector

Jump to

Keyboard shortcuts

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