injection

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 2 Imported by: 0

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"
)

Jump to

Keyboard shortcuts

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