crowdsec/pkg/waf/waf_expr_lib.go

33 lines
632 B
Go
Raw Normal View History

2023-06-09 11:00:43 +00:00
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{}
}
2023-11-24 14:57:49 +00:00
var onLoadExprFuncs = []exprCustomFunc{}
var preEvalExprFuncs = []exprCustomFunc{}
var onMatchExprFuncs = []exprCustomFunc{}
2023-06-09 11:00:43 +00:00
var exprFuncs = []exprCustomFunc{
2023-06-15 20:51:57 +00:00
/*{
2023-06-09 11:00:43 +00:00
name: "SetRulesToInband",
function: SetRulesToInband,
signature: []interface{}{
new(func() error),
},
},
{
name: "SetRulesToOutOfBand",
function: SetRulesToOutOfBand,
signature: []interface{}{
new(func() error),
},
2023-06-15 20:51:57 +00:00
},*/
2023-06-09 11:00:43 +00:00
}