operators

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

View Source
const (
	UNICODE_ERROR_CHARACTERS_MISSING   = -1
	UNICODE_ERROR_INVALID_ENCODING     = -2
	UNICODE_ERROR_OVERLONG_CHARACTER   = -3
	UNICODE_ERROR_RESTRICTED_CHARACTER = -4
	UNICODE_ERROR_DECODING_ERROR       = -5
)

Variables

This section is empty.

Functions

func OperatorsMap

func OperatorsMap() map[string]engine.Operator

Types

type BeginsWith

type BeginsWith struct {
	// contains filtered or unexported fields
}

func (*BeginsWith) Evaluate

func (o *BeginsWith) Evaluate(tx *engine.Transaction, value string) bool

func (*BeginsWith) Init

func (o *BeginsWith) Init(data string) error

type Contains

type Contains struct {
	// contains filtered or unexported fields
}

func (*Contains) Evaluate

func (o *Contains) Evaluate(tx *engine.Transaction, value string) bool

func (*Contains) Init

func (o *Contains) Init(data string) error

type DetectSQLi

type DetectSQLi struct{}

func (*DetectSQLi) Evaluate

func (o *DetectSQLi) Evaluate(tx *engine.Transaction, value string) bool

func (*DetectSQLi) Init

func (o *DetectSQLi) Init(data string) error

type DetectXSS

type DetectXSS struct{}

func (*DetectXSS) Evaluate

func (o *DetectXSS) Evaluate(tx *engine.Transaction, value string) bool

func (*DetectXSS) Init

func (o *DetectXSS) Init(data string) error

type EndsWith

type EndsWith struct {
	// contains filtered or unexported fields
}

func (*EndsWith) Evaluate

func (o *EndsWith) Evaluate(tx *engine.Transaction, value string) bool

func (*EndsWith) Init

func (o *EndsWith) Init(data string) error

type Eq

type Eq struct {
	// contains filtered or unexported fields
}

func (*Eq) Evaluate

func (o *Eq) Evaluate(tx *engine.Transaction, value string) bool

func (*Eq) Init

func (o *Eq) Init(data string) error

type FuzzyHash

type FuzzyHash struct {
	// contains filtered or unexported fields
}

func (*FuzzyHash) Evaluate

func (o *FuzzyHash) Evaluate(tx *engine.Transaction, value string) bool

func (*FuzzyHash) Init

func (o *FuzzyHash) Init(data string)

type Ge

type Ge struct {
	// contains filtered or unexported fields
}

func (*Ge) Evaluate

func (o *Ge) Evaluate(tx *engine.Transaction, value string) bool

func (*Ge) Init

func (o *Ge) Init(data string) error

type GeoLookup

type GeoLookup struct {
	// contains filtered or unexported fields
}

func (*GeoLookup) Evaluate

func (o *GeoLookup) Evaluate(tx *engine.Transaction, value string) bool

func (*GeoLookup) Init

func (o *GeoLookup) Init(data string) error

type Gt

type Gt struct {
	// contains filtered or unexported fields
}

func (*Gt) Evaluate

func (o *Gt) Evaluate(tx *engine.Transaction, value string) bool

func (*Gt) Init

func (o *Gt) Init(data string) error

type InspectFile

type InspectFile struct {
	// contains filtered or unexported fields
}

func (*InspectFile) Evaluate

func (o *InspectFile) Evaluate(tx *engine.Transaction, value string) bool

func (*InspectFile) Init

func (o *InspectFile) Init(data string) error

type IpMatch

type IpMatch struct {
	// contains filtered or unexported fields
}

func (*IpMatch) Evaluate

func (o *IpMatch) Evaluate(tx *engine.Transaction, value string) bool

func (*IpMatch) Init

func (o *IpMatch) Init(data string) error

type IpMatchFromFile

type IpMatchFromFile struct {
	// contains filtered or unexported fields
}

func (*IpMatchFromFile) Evaluate

func (o *IpMatchFromFile) Evaluate(tx *engine.Transaction, value string) bool

func (*IpMatchFromFile) Init

func (o *IpMatchFromFile) Init(data string) error

type Le

type Le struct {
	// contains filtered or unexported fields
}

func (*Le) Evaluate

func (o *Le) Evaluate(tx *engine.Transaction, value string) bool

func (*Le) Init

func (o *Le) Init(data string) error

type Lt

type Lt struct {
	// contains filtered or unexported fields
}

func (*Lt) Evaluate

func (o *Lt) Evaluate(tx *engine.Transaction, value string) bool

func (*Lt) Init

func (o *Lt) Init(data string) error

type NoMatch

type NoMatch struct {
}

func (*NoMatch) Evaluate

func (o *NoMatch) Evaluate(tx *engine.Transaction, value string) bool

func (*NoMatch) Init

func (o *NoMatch) Init(data string) error

type Pm

type Pm struct {
	// contains filtered or unexported fields
}

func (*Pm) Evaluate

func (o *Pm) Evaluate(tx *engine.Transaction, value string) bool

func (*Pm) Init

func (o *Pm) Init(data string) error

type PmFromFile

type PmFromFile struct {
	Data []string
	// contains filtered or unexported fields
}

func (*PmFromFile) Evaluate

func (o *PmFromFile) Evaluate(tx *engine.Transaction, value string) bool

func (*PmFromFile) Init

func (o *PmFromFile) Init(data string) error

type Rbl

type Rbl struct {
	// contains filtered or unexported fields
}

func (*Rbl) Init

func (o *Rbl) Init(data string) error

type Rx

type Rx struct {
	// contains filtered or unexported fields
}

func (*Rx) Evaluate

func (o *Rx) Evaluate(tx *engine.Transaction, value string) bool

func (*Rx) Init

func (o *Rx) Init(data string) error

type Streq

type Streq struct {
	// contains filtered or unexported fields
}

func (*Streq) Evaluate

func (o *Streq) Evaluate(tx *engine.Transaction, value string) bool

func (*Streq) Init

func (o *Streq) Init(data string) error

type UnconditionalMatch

type UnconditionalMatch struct{}

func (*UnconditionalMatch) Evaluate

func (o *UnconditionalMatch) Evaluate(tx *engine.Transaction, value string) bool

func (*UnconditionalMatch) Init

func (o *UnconditionalMatch) Init(data string) error

type ValidateByteRange

type ValidateByteRange struct {
	// contains filtered or unexported fields
}

func (*ValidateByteRange) Evaluate

func (o *ValidateByteRange) Evaluate(tx *engine.Transaction, data string) bool

func (*ValidateByteRange) Init

func (o *ValidateByteRange) Init(data string) error

type ValidateNid

type ValidateNid struct {
	// contains filtered or unexported fields
}

func (*ValidateNid) Evaluate

func (o *ValidateNid) Evaluate(tx *engine.Transaction, value string) bool

func (*ValidateNid) Init

func (o *ValidateNid) Init(data string) error

type ValidateUrlEncoding

type ValidateUrlEncoding struct {
	// contains filtered or unexported fields
}

func (*ValidateUrlEncoding) Evaluate

func (o *ValidateUrlEncoding) Evaluate(tx *engine.Transaction, value string) bool

func (*ValidateUrlEncoding) Init

func (o *ValidateUrlEncoding) Init(data string) error

type ValidateUtf8Encoding

type ValidateUtf8Encoding struct{}

func (*ValidateUtf8Encoding) Evaluate

func (o *ValidateUtf8Encoding) Evaluate(tx *engine.Transaction, value string) bool

func (*ValidateUtf8Encoding) Init

func (o *ValidateUtf8Encoding) Init(data string) error

type VerifyCC

type VerifyCC struct {
}

func (*VerifyCC) Evaluate

func (o *VerifyCC) Evaluate(tx *engine.Transaction, value string) bool

func (*VerifyCC) Init

func (o *VerifyCC) Init(data string) error

type Within

type Within struct {
	// contains filtered or unexported fields
}

func (*Within) Evaluate

func (o *Within) Evaluate(tx *engine.Transaction, value string) bool

func (*Within) Init

func (o *Within) Init(data string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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