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{}
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
}
|