crowdsec/pkg/waf/waf_expr_lib.go
Sebastien Blot 946fbbb8a2
up
2023-11-24 15:57:49 +01:00

33 lines
632 B
Go

package waf
//This is a copy paste from expr_lib.go, we probably want to only have one ?
type exprCustomFunc struct {
name string
function func(params ...any) (any, error)
signature []interface{}
}
var onLoadExprFuncs = []exprCustomFunc{}
var preEvalExprFuncs = []exprCustomFunc{}
var onMatchExprFuncs = []exprCustomFunc{}
var exprFuncs = []exprCustomFunc{
/*{
name: "SetRulesToInband",
function: SetRulesToInband,
signature: []interface{}{
new(func() error),
},
},
{
name: "SetRulesToOutOfBand",
function: SetRulesToOutOfBand,
signature: []interface{}{
new(func() error),
},
},*/
}