Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Eng ¶
type Eng struct {
// contains filtered or unexported fields
}
Eng http.Request rule engine.
func NewEngFromYml ¶
NewEngFromYml loads an engine from yaml data
func (*Eng) ProcessRequest ¶
func (e *Eng) ProcessRequest(w http.ResponseWriter, r *http.Request)
ProcessRequest performs any rules on matching requests
type EngCfg ¶
type EngCfg struct {
UrlWhiteList []string `yaml:"urlWhiteList"`
PostBan []string `yaml:"postBan"`
UrlBan []string `yaml:"urlBan"`
QueryBan []string `yaml:"queryBan"`
Filter []FilterCfg `yaml:"postFilter"`
}
EngCfg defines an engine configuration
Click to show internal directories.
Click to hide internal directories.