engine

package
v0.0.0-...-0740fd7 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	Request               *http.Request
	Response              *http.Response
	RequestBodyProcessor  bodyprocessor.IBodyProcessor
	ResponseBodyProcessor bodyprocessor.IBodyProcessor
	// contains filtered or unexported fields
}

Transaction Main model for request response examine

func NewTransaction

func NewTransaction(r *http.Request) *Transaction

NewTransaction Initiates a new request variable object

func (*Transaction) Execute

func (t *Transaction) Execute(rule *models.Rule) *matches.MatchResult

Execute Executes transaction for rule

type TransactionData

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

TransactionData Transaction model

type TransactionExecuterModel

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

TransactionExecuterModel Executer model

type TransactionMap

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

TransactionMap variable map model

var TransactionMaps *TransactionMap = &TransactionMap{make(map[string]*TransactionData)}

TransactionMaps global map variable object

func (*TransactionMap) Get

func (tMap *TransactionMap) Get(key string) *TransactionData

Get the data in transaction data

Jump to

Keyboard shortcuts

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