Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileRules ¶
Types ¶
type ActionEnum ¶
type ActionEnum string
const ( ActionEnumScript ActionEnum = "script" ActionEnumReject ActionEnum = "reject" )
type ChangeTypeEnum ¶
type ChangeTypeEnum string
const ( ChangeTypeEnumRequest ChangeTypeEnum = "request" ChangeTypeEnumResponse ChangeTypeEnum = "response" )
type Rule ¶
type Rule struct {
Name string `yaml:"name"`
Change ChangeTypeEnum `yaml:"change"`
Enabled bool `yaml:"enabled"`
Rule string `yaml:"rule"`
Action ActionEnum `yaml:"action"`
Import string `yaml:"import"`
Script string `yaml:"script"`
CompiledScript func(*http.Request, *http.Response) error
CompiledRule cel.Program
}
Click to show internal directories.
Click to hide internal directories.