mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 01:20:26 +08:00
33 lines
669 B
Go
33 lines
669 B
Go
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()
|
|
}
|