Initial commit (code only without large binaries)

This commit is contained in:
robin
2026-02-15 18:58:44 +08:00
commit 35df75498f
9442 changed files with 1495866 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
package checkpoints
import (
"github.com/TeaOSLab/EdgeNode/internal/waf/requests"
"github.com/TeaOSLab/EdgeNode/internal/waf/utils"
"github.com/iwind/TeaGo/maps"
)
// CheckpointInterface Check Point
type CheckpointInterface interface {
// Init initialize
Init()
// IsRequest is request?
IsRequest() bool
// IsComposed is composed?
IsComposed() bool
// RequestValue get request value
RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
// ResponseValue get response value
ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
// ParamOptions param option list
ParamOptions() *ParamOptions
// Options options
Options() []OptionInterface
// Start start
Start()
// Stop stop
Stop()
// SetPriority set priority
SetPriority(priority int)
// Priority get priority
Priority() int
// CacheLife regexp cache life
CacheLife() utils.CacheLife
}