Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InjectionDetector ¶
type InjectionDetector struct {
// contains filtered or unexported fields
}
func NewInjectionDetector ¶
func NewInjectionDetector() *InjectionDetector
func (*InjectionDetector) Detect ¶
func (d *InjectionDetector) Detect(input string) []InjectionFinding
func (*InjectionDetector) HasInjection ¶
func (d *InjectionDetector) HasInjection(input string) bool
type InjectionFinding ¶
type InjectionFinding struct {
Type InjectionType `json:"type"`
Match string `json:"match"`
Severity int `json:"severity"`
}
type InjectionType ¶
type InjectionType string
const ( InjectionDirect InjectionType = "direct" InjectionIndirect InjectionType = "indirect" InjectionJailbreak InjectionType = "jailbreak" )
Click to show internal directories.
Click to hide internal directories.