mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-17 23:03:56 +02:00
26 lines
500 B
Go
26 lines
500 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 exprFuncs = []exprCustomFunc{
|
|
{
|
|
name: "SetRulesToInband",
|
|
function: SetRulesToInband,
|
|
signature: []interface{}{
|
|
new(func() error),
|
|
},
|
|
},
|
|
{
|
|
name: "SetRulesToOutOfBand",
|
|
function: SetRulesToOutOfBand,
|
|
signature: []interface{}{
|
|
new(func() error),
|
|
},
|
|
},
|
|
}
|