Files
EdgeNode/internal/waf/checkpoints/checkpoint_interface.go

33 lines
669 B
Go
Raw Normal View History

2020-10-08 15:06:42 +08:00
package checkpoints
import (
"github.com/TeaOSLab/EdgeNode/internal/waf/requests"
)
// Check Point
type CheckpointInterface interface {
// initialize
Init()
// is request?
IsRequest() bool
// get request value
RequestValue(req *requests.Request, param string, options map[string]interface{}) (value interface{}, sysErr error, userErr error)
// get response value
ResponseValue(req *requests.Request, resp *requests.Response, param string, options map[string]interface{}) (value interface{}, sysErr error, userErr error)
// param option list
ParamOptions() *ParamOptions
// options
Options() []OptionInterface
// start
Start()
// stop
Stop()
}