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
Click to show internal directories.
Click to hide internal directories.