mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-08 19:40:25 +08:00
WAF增加多个动作
This commit is contained in:
@@ -5,32 +5,32 @@ import (
|
||||
"github.com/iwind/TeaGo/maps"
|
||||
)
|
||||
|
||||
// Check Point
|
||||
// CheckpointInterface Check Point
|
||||
type CheckpointInterface interface {
|
||||
// initialize
|
||||
// Init initialize
|
||||
Init()
|
||||
|
||||
// is request?
|
||||
// IsRequest is request?
|
||||
IsRequest() bool
|
||||
|
||||
// is composed?
|
||||
// IsComposed is composed?
|
||||
IsComposed() bool
|
||||
|
||||
// get request value
|
||||
RequestValue(req *requests.Request, param string, options maps.Map) (value interface{}, sysErr error, userErr error)
|
||||
// RequestValue get request value
|
||||
RequestValue(req requests.Request, param string, options maps.Map) (value interface{}, sysErr error, userErr error)
|
||||
|
||||
// get response value
|
||||
ResponseValue(req *requests.Request, resp *requests.Response, param string, options maps.Map) (value interface{}, sysErr error, userErr error)
|
||||
// ResponseValue get response value
|
||||
ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map) (value interface{}, sysErr error, userErr error)
|
||||
|
||||
// param option list
|
||||
// ParamOptions param option list
|
||||
ParamOptions() *ParamOptions
|
||||
|
||||
// options
|
||||
// Options options
|
||||
Options() []OptionInterface
|
||||
|
||||
// start
|
||||
// Start start
|
||||
Start()
|
||||
|
||||
// stop
|
||||
// Stop stop
|
||||
Stop()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user