waf_expr_lib.go 500 B

1234567891011121314151617181920212223242526
  1. package waf
  2. //This is a copy paste from expr_lib.go, we probably want to only have one ?
  3. type exprCustomFunc struct {
  4. name string
  5. function func(params ...any) (any, error)
  6. signature []interface{}
  7. }
  8. var exprFuncs = []exprCustomFunc{
  9. {
  10. name: "SetRulesToInband",
  11. function: SetRulesToInband,
  12. signature: []interface{}{
  13. new(func() error),
  14. },
  15. },
  16. {
  17. name: "SetRulesToOutOfBand",
  18. function: SetRulesToOutOfBand,
  19. signature: []interface{}{
  20. new(func() error),
  21. },
  22. },
  23. }