checkpoints

package
v1.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllCheckpoints = []*CheckpointDefinition{
	{
		Name:        "通用请求Header长度限制",
		Prefix:      "requestGeneralHeaderLength",
		Description: "通用Header比如Cache-Control、Accept之类的长度限制,防止缓冲区溢出攻击",
		HasParams:   false,
		Instance:    new(RequestGeneralHeaderLengthCheckpoint),
		Priority:    100,
	},
	{
		Name:        "客户端地址(IP)",
		Prefix:      "remoteAddr",
		Description: "试图通过分析X-Forwarded-For等Header获取的客户端地址,比如192.168.1.100",
		HasParams:   false,
		Instance:    new(RequestRemoteAddrCheckpoint),
		Priority:    100,
	},
	{
		Name:        "客户端源地址(IP)",
		Prefix:      "rawRemoteAddr",
		Description: "直接连接的客户端地址,比如192.168.1.100",
		HasParams:   false,
		Instance:    new(RequestRawRemoteAddrCheckpoint),
		Priority:    100,
	},
	{
		Name:        "客户端端口",
		Prefix:      "remotePort",
		Description: "直接连接的客户端地址端口",
		HasParams:   false,
		Instance:    new(RequestRemotePortCheckpoint),
		Priority:    100,
	},
	{
		Name:        "客户端用户名",
		Prefix:      "remoteUser",
		Description: "通过BasicAuth登录的客户端用户名",
		HasParams:   false,
		Instance:    new(RequestRemoteUserCheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求URI",
		Prefix:      "requestURI",
		Description: "包含URL参数的请求URI,类似于 /hello/world?lang=go",
		HasParams:   false,
		Instance:    new(RequestURICheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求路径",
		Prefix:      "requestPath",
		Description: "不包含URL参数的请求路径,类似于 /hello/world",
		HasParams:   false,
		Instance:    new(RequestPathCheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求URL",
		Prefix:      "requestURL",
		Description: "完整的请求URL,包含协议、域名、请求路径、参数等,类似于 https://example.com/hello?name=lily",
		HasParams:   false,
		Instance:    new(RequestURLCheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求内容长度",
		Prefix:      "requestLength",
		Description: "请求Header中的Content-Length",
		HasParams:   false,
		Instance:    new(RequestLengthCheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求体内容",
		Prefix:      "requestBody",
		Description: "通常在POST或者PUT等操作时会附带请求体,最大限制32M",
		HasParams:   false,
		Instance:    new(RequestBodyCheckpoint),
		Priority:    5,
	},
	{
		Name:        "请求URI和请求体组合",
		Prefix:      "requestAll",
		Description: "${requestURI}和${requestBody}组合",
		HasParams:   false,
		Instance:    new(RequestAllCheckpoint),
		Priority:    5,
	},
	{
		Name:        "请求表单参数",
		Prefix:      "requestForm",
		Description: "获取POST或者其他方法发送的表单参数,最大请求体限制32M",
		HasParams:   true,
		Instance:    new(RequestFormArgCheckpoint),
		Priority:    5,
	},
	{
		Name:        "上传文件",
		Prefix:      "requestUpload",
		Description: "获取POST上传的文件信息,最大请求体限制32M",
		HasParams:   true,
		Instance:    new(RequestUploadCheckpoint),
		Priority:    20,
	},
	{
		Name:        "请求JSON参数",
		Prefix:      "requestJSON",
		Description: "获取POST或者其他方法发送的JSON,最大请求体限制32M,使用点(.)符号表示多级数据",
		HasParams:   true,
		Instance:    new(RequestJSONArgCheckpoint),
		Priority:    5,
	},
	{
		Name:        "请求方法",
		Prefix:      "requestMethod",
		Description: "比如GET、POST",
		HasParams:   false,
		Instance:    new(RequestMethodCheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求协议",
		Prefix:      "scheme",
		Description: "比如http或https",
		HasParams:   false,
		Instance:    new(RequestSchemeCheckpoint),
		Priority:    100,
	},
	{
		Name:        "HTTP协议版本",
		Prefix:      "proto",
		Description: "比如HTTP/1.1",
		HasParams:   false,
		Instance:    new(RequestProtoCheckpoint),
		Priority:    100,
	},
	{
		Name:        "主机名",
		Prefix:      "host",
		Description: "比如teaos.cn",
		HasParams:   false,
		Instance:    new(RequestHostCheckpoint),
		Priority:    100,
	},
	{
		Name:        "CNAME",
		Prefix:      "cname",
		Description: "当前网站服务CNAME,比如38b48e4f.goedge.cn",
		HasParams:   false,
		Instance:    new(RequestCNAMECheckpoint),
		Priority:    100,
	},
	{
		Name:        "是否为CNAME",
		Prefix:      "isCNAME",
		Description: "是否为CNAME,值为1(是)或0(否)",
		HasParams:   false,
		Instance:    new(RequestIsCNAMECheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求来源",
		Prefix:      "refererOrigin",
		Description: "请求报头中的Referer或Origin值",
		HasParams:   false,
		Instance:    new(RequestRefererOriginCheckpoint),
		Priority:    100,
	},
	{
		Name:        "请求来源Referer",
		Prefix:      "referer",
		Description: "请求Header中的Referer值",
		HasParams:   false,
		Instance:    new(RequestRefererCheckpoint),
		Priority:    100,
	},
	{
		Name:        "客户端信息",
		Prefix:      "userAgent",
		Description: "比如Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103",
		HasParams:   false,
		Instance:    new(RequestUserAgentCheckpoint),
		Priority:    100,
	},
	{
		Name:        "内容类型",
		Prefix:      "contentType",
		Description: "请求Header的Content-Type",
		HasParams:   false,
		Instance:    new(RequestContentTypeCheckpoint),
		Priority:    100,
	},
	{
		Name:        "所有cookie组合字符串",
		Prefix:      "cookies",
		Description: "比如sid=IxZVPFhE&city=beijing&uid=18237",
		HasParams:   false,
		Instance:    new(RequestCookiesCheckpoint),
		Priority:    100,
	},
	{
		Name:        "单个cookie值",
		Prefix:      "cookie",
		Description: "单个cookie值",
		HasParams:   true,
		Instance:    new(RequestCookieCheckpoint),
		Priority:    100,
	},
	{
		Name:        "所有URL参数组合",
		Prefix:      "args",
		Description: "比如name=lu&age=20",
		HasParams:   false,
		Instance:    new(RequestArgsCheckpoint),
		Priority:    100,
	},
	{
		Name:        "单个URL参数值",
		Prefix:      "arg",
		Description: "单个URL参数值",
		HasParams:   true,
		Instance:    new(RequestArgCheckpoint),
		Priority:    100,
	},
	{
		Name:        "所有Header信息",
		Prefix:      "headers",
		Description: "使用\\n隔开的Header信息字符串",
		HasParams:   false,
		Instance:    new(RequestHeadersCheckpoint),
		Priority:    100,
	},
	{
		Name:        "所有请求报头名称",
		Prefix:      "headerNames",
		Description: "使用换行符(\\n)隔开的报头名称字符串,每行一个名称",
		HasParams:   false,
		Instance:    new(RequestHeaderNamesCheckpoint),
		Priority:    100,
	},
	{
		Name:        "单个Header值",
		Prefix:      "header",
		Description: "单个Header值",
		HasParams:   true,
		Instance:    new(RequestHeaderCheckpoint),
		Priority:    100,
	},
	{
		Name:        "国家/地区名称",
		Prefix:      "geoCountryName",
		Description: "国家/地区名称",
		HasParams:   false,
		Instance:    new(RequestGeoCountryNameCheckpoint),
		Priority:    90,
	},
	{
		Name:        "省份名称",
		Prefix:      "geoProvinceName",
		Description: "中国省份名称",
		HasParams:   false,
		Instance:    new(RequestGeoProvinceNameCheckpoint),
		Priority:    90,
	},
	{
		Name:        "城市名称",
		Prefix:      "geoCityName",
		Description: "中国城市名称",
		HasParams:   false,
		Instance:    new(RequestGeoCityNameCheckpoint),
		Priority:    90,
	},
	{
		Name:        "ISP名称",
		Prefix:      "ispName",
		Description: "ISP名称",
		HasParams:   false,
		Instance:    new(RequestISPNameCheckpoint),
		Priority:    90,
	},
	{
		Name:        "CC统计(旧)",
		Prefix:      "cc",
		Description: "统计某段时间段内的请求信息",
		HasParams:   true,
		Instance:    new(CCCheckpoint),
		Priority:    10,
	},
	{
		Name:        "CC统计(新)",
		Prefix:      "cc2",
		Description: "统计某段时间段内的请求信息",
		HasParams:   true,
		Instance:    new(CC2Checkpoint),
		Priority:    10,
	},
	{
		Name:        "防盗链",
		Prefix:      "refererBlock",
		Description: "阻止一些域名访问引用本站资源",
		HasParams:   true,
		Instance:    new(RequestRefererBlockCheckpoint),
		Priority:    20,
	},
	{
		Name:        "通用响应Header长度限制",
		Prefix:      "responseGeneralHeaderLength",
		Description: "通用Header比如Cache-Control、Accept之类的长度限制,防止缓冲区溢出攻击",
		HasParams:   false,
		Instance:    new(ResponseGeneralHeaderLengthCheckpoint),
		Priority:    100,
	},
	{
		Name:        "响应状态码",
		Prefix:      "status",
		Description: "响应状态码,比如200、404、500",
		HasParams:   false,
		Instance:    new(ResponseStatusCheckpoint),
		Priority:    100,
	},
	{
		Name:        "响应Header",
		Prefix:      "responseHeader",
		Description: "响应Header值",
		HasParams:   true,
		Instance:    new(ResponseHeaderCheckpoint),
		Priority:    100,
	},
	{
		Name:        "响应内容",
		Prefix:      "responseBody",
		Description: "响应内容字符串",
		HasParams:   false,
		Instance:    new(ResponseBodyCheckpoint),
		Priority:    5,
	},
	{
		Name:        "响应内容长度",
		Prefix:      "bytesSent",
		Description: "响应内容长度,通过响应的Header Content-Length获取",
		HasParams:   false,
		Instance:    new(ResponseBytesSentCheckpoint),
		Priority:    100,
	},
}

AllCheckpoints all check points list

Functions

This section is empty.

Types

type CC2Checkpoint

type CC2Checkpoint struct {
	Checkpoint
}

CC2Checkpoint 新的CC

func (*CC2Checkpoint) CacheLife added in v1.2.10

func (this *CC2Checkpoint) CacheLife() wafutils.CacheLife

func (*CC2Checkpoint) RequestValue

func (this *CC2Checkpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*CC2Checkpoint) ResponseValue

func (this *CC2Checkpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type CCCheckpoint

type CCCheckpoint struct {
	Checkpoint
}

CCCheckpoint ${cc.arg} TODO implement more traffic rules

func (*CCCheckpoint) CacheLife added in v1.2.10

func (this *CCCheckpoint) CacheLife() utils.CacheLife

func (*CCCheckpoint) Init

func (this *CCCheckpoint) Init()

func (*CCCheckpoint) Options

func (this *CCCheckpoint) Options() []OptionInterface

func (*CCCheckpoint) ParamOptions

func (this *CCCheckpoint) ParamOptions() *ParamOptions

func (*CCCheckpoint) RequestValue

func (this *CCCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*CCCheckpoint) ResponseValue

func (this *CCCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*CCCheckpoint) Start

func (this *CCCheckpoint) Start()

func (*CCCheckpoint) Stop

func (this *CCCheckpoint) Stop()

type Checkpoint

type Checkpoint struct {
	// contains filtered or unexported fields
}

func (*Checkpoint) Init

func (this *Checkpoint) Init()

func (*Checkpoint) IsComposed

func (this *Checkpoint) IsComposed() bool

func (*Checkpoint) IsRequest

func (this *Checkpoint) IsRequest() bool

func (*Checkpoint) Options

func (this *Checkpoint) Options() []OptionInterface

func (*Checkpoint) ParamOptions

func (this *Checkpoint) ParamOptions() *ParamOptions

func (*Checkpoint) Priority added in v0.5.6

func (this *Checkpoint) Priority() int

func (*Checkpoint) RequestBodyIsEmpty

func (this *Checkpoint) RequestBodyIsEmpty(req requests.Request) bool

func (*Checkpoint) SetPriority added in v0.5.6

func (this *Checkpoint) SetPriority(priority int)

func (*Checkpoint) Start

func (this *Checkpoint) Start()

func (*Checkpoint) Stop

func (this *Checkpoint) Stop()

type CheckpointDefinition

type CheckpointDefinition struct {
	Name        string
	Description string
	Prefix      string
	HasParams   bool // has sub params
	Instance    CheckpointInterface
	Priority    int
}

CheckpointDefinition check point definition

func FindCheckpointDefinition

func FindCheckpointDefinition(prefix string) *CheckpointDefinition

FindCheckpointDefinition find a check point definition

type CheckpointInterface

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
}

CheckpointInterface Check Point

func FindCheckpoint

func FindCheckpoint(prefix string) CheckpointInterface

FindCheckpoint find a check point

type FieldOption

type FieldOption struct {
	Name        string
	Code        string
	Value       string // default value
	IsRequired  bool
	Size        int
	Comment     string
	Placeholder string
	RightLabel  string
	MaxLength   int
	Validate    func(value string) (ok bool, message string)
}

attach option

func NewFieldOption

func NewFieldOption(name string, code string) *FieldOption

func (*FieldOption) Type

func (this *FieldOption) Type() string

type KeyValue

type KeyValue struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type OptionInterface

type OptionInterface interface {
	Type() string
}

type OptionsOption

type OptionsOption struct {
	Name       string
	Code       string
	Value      string // default value
	IsRequired bool
	Size       int
	Comment    string
	RightLabel string
	Validate   func(value string) (ok bool, message string)
	Options    []maps.Map
}

func NewOptionsOption

func NewOptionsOption(name string, code string) *OptionsOption

func (*OptionsOption) SetOptions

func (this *OptionsOption) SetOptions(options []maps.Map)

func (*OptionsOption) Type

func (this *OptionsOption) Type() string

type ParamOptions

type ParamOptions struct {
	Options []*KeyValue `json:"options"`
}

func NewParamOptions

func NewParamOptions() *ParamOptions

func (*ParamOptions) AddParam

func (this *ParamOptions) AddParam(name string, value string)

type RequestAllCheckpoint

type RequestAllCheckpoint struct {
	Checkpoint
}

RequestAllCheckpoint ${requestAll}

func (*RequestAllCheckpoint) CacheLife added in v1.2.10

func (this *RequestAllCheckpoint) CacheLife() utils.CacheLife

func (*RequestAllCheckpoint) RequestValue

func (this *RequestAllCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestAllCheckpoint) ResponseValue

func (this *RequestAllCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestArgCheckpoint

type RequestArgCheckpoint struct {
	Checkpoint
}

func (*RequestArgCheckpoint) CacheLife added in v1.2.10

func (this *RequestArgCheckpoint) CacheLife() utils.CacheLife

func (*RequestArgCheckpoint) RequestValue

func (this *RequestArgCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestArgCheckpoint) ResponseValue

func (this *RequestArgCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestArgsCheckpoint

type RequestArgsCheckpoint struct {
	Checkpoint
}

func (*RequestArgsCheckpoint) CacheLife added in v1.2.10

func (this *RequestArgsCheckpoint) CacheLife() utils.CacheLife

func (*RequestArgsCheckpoint) RequestValue

func (this *RequestArgsCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestArgsCheckpoint) ResponseValue

func (this *RequestArgsCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestBodyCheckpoint

type RequestBodyCheckpoint struct {
	Checkpoint
}

RequestBodyCheckpoint ${requestBody}

func (*RequestBodyCheckpoint) CacheLife added in v1.2.10

func (this *RequestBodyCheckpoint) CacheLife() utils.CacheLife

func (*RequestBodyCheckpoint) RequestValue

func (this *RequestBodyCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestBodyCheckpoint) ResponseValue

func (this *RequestBodyCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestCNAMECheckpoint added in v0.5.8

type RequestCNAMECheckpoint struct {
	Checkpoint
}

func (*RequestCNAMECheckpoint) CacheLife added in v1.2.10

func (this *RequestCNAMECheckpoint) CacheLife() utils.CacheLife

func (*RequestCNAMECheckpoint) RequestValue added in v0.5.8

func (this *RequestCNAMECheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestCNAMECheckpoint) ResponseValue added in v0.5.8

func (this *RequestCNAMECheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestContentTypeCheckpoint

type RequestContentTypeCheckpoint struct {
	Checkpoint
}

func (*RequestContentTypeCheckpoint) CacheLife added in v1.2.10

func (this *RequestContentTypeCheckpoint) CacheLife() utils.CacheLife

func (*RequestContentTypeCheckpoint) RequestValue

func (this *RequestContentTypeCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestContentTypeCheckpoint) ResponseValue

func (this *RequestContentTypeCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestCookieCheckpoint

type RequestCookieCheckpoint struct {
	Checkpoint
}

func (*RequestCookieCheckpoint) CacheLife added in v1.2.10

func (this *RequestCookieCheckpoint) CacheLife() utils.CacheLife

func (*RequestCookieCheckpoint) RequestValue

func (this *RequestCookieCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestCookieCheckpoint) ResponseValue

func (this *RequestCookieCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestCookiesCheckpoint

type RequestCookiesCheckpoint struct {
	Checkpoint
}

func (*RequestCookiesCheckpoint) CacheLife added in v1.2.10

func (this *RequestCookiesCheckpoint) CacheLife() utils.CacheLife

func (*RequestCookiesCheckpoint) RequestValue

func (this *RequestCookiesCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestCookiesCheckpoint) ResponseValue

func (this *RequestCookiesCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestFormArgCheckpoint

type RequestFormArgCheckpoint struct {
	Checkpoint
}

RequestFormArgCheckpoint ${requestForm.arg}

func (*RequestFormArgCheckpoint) CacheLife added in v1.2.10

func (this *RequestFormArgCheckpoint) CacheLife() utils.CacheLife

func (*RequestFormArgCheckpoint) RequestValue

func (this *RequestFormArgCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestFormArgCheckpoint) ResponseValue

func (this *RequestFormArgCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestGeneralHeaderLengthCheckpoint

type RequestGeneralHeaderLengthCheckpoint struct {
	Checkpoint
}

func (*RequestGeneralHeaderLengthCheckpoint) CacheLife added in v1.2.10

func (*RequestGeneralHeaderLengthCheckpoint) IsComposed

func (this *RequestGeneralHeaderLengthCheckpoint) IsComposed() bool

func (*RequestGeneralHeaderLengthCheckpoint) RequestValue

func (this *RequestGeneralHeaderLengthCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestGeneralHeaderLengthCheckpoint) ResponseValue

func (this *RequestGeneralHeaderLengthCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestGeoCityNameCheckpoint

type RequestGeoCityNameCheckpoint struct {
	Checkpoint
}

func (*RequestGeoCityNameCheckpoint) CacheLife added in v1.2.10

func (this *RequestGeoCityNameCheckpoint) CacheLife() utils.CacheLife

func (*RequestGeoCityNameCheckpoint) IsComposed

func (this *RequestGeoCityNameCheckpoint) IsComposed() bool

func (*RequestGeoCityNameCheckpoint) RequestValue

func (this *RequestGeoCityNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestGeoCityNameCheckpoint) ResponseValue

func (this *RequestGeoCityNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestGeoCountryNameCheckpoint

type RequestGeoCountryNameCheckpoint struct {
	Checkpoint
}

func (*RequestGeoCountryNameCheckpoint) CacheLife added in v1.2.10

func (*RequestGeoCountryNameCheckpoint) IsComposed

func (this *RequestGeoCountryNameCheckpoint) IsComposed() bool

func (*RequestGeoCountryNameCheckpoint) RequestValue

func (this *RequestGeoCountryNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestGeoCountryNameCheckpoint) ResponseValue

func (this *RequestGeoCountryNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestGeoProvinceNameCheckpoint

type RequestGeoProvinceNameCheckpoint struct {
	Checkpoint
}

func (*RequestGeoProvinceNameCheckpoint) CacheLife added in v1.2.10

func (*RequestGeoProvinceNameCheckpoint) IsComposed

func (this *RequestGeoProvinceNameCheckpoint) IsComposed() bool

func (*RequestGeoProvinceNameCheckpoint) RequestValue

func (this *RequestGeoProvinceNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestGeoProvinceNameCheckpoint) ResponseValue

func (this *RequestGeoProvinceNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestHeaderCheckpoint

type RequestHeaderCheckpoint struct {
	Checkpoint
}

func (*RequestHeaderCheckpoint) CacheLife added in v1.2.10

func (this *RequestHeaderCheckpoint) CacheLife() utils.CacheLife

func (*RequestHeaderCheckpoint) RequestValue

func (this *RequestHeaderCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestHeaderCheckpoint) ResponseValue

func (this *RequestHeaderCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestHeaderNamesCheckpoint added in v1.3.2

type RequestHeaderNamesCheckpoint struct {
	Checkpoint
}

func (*RequestHeaderNamesCheckpoint) CacheLife added in v1.3.2

func (this *RequestHeaderNamesCheckpoint) CacheLife() utils.CacheLife

func (*RequestHeaderNamesCheckpoint) RequestValue added in v1.3.2

func (this *RequestHeaderNamesCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestHeaderNamesCheckpoint) ResponseValue added in v1.3.2

func (this *RequestHeaderNamesCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestHeadersCheckpoint

type RequestHeadersCheckpoint struct {
	Checkpoint
}

func (*RequestHeadersCheckpoint) CacheLife added in v1.2.10

func (this *RequestHeadersCheckpoint) CacheLife() utils.CacheLife

func (*RequestHeadersCheckpoint) RequestValue

func (this *RequestHeadersCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestHeadersCheckpoint) ResponseValue

func (this *RequestHeadersCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestHostCheckpoint

type RequestHostCheckpoint struct {
	Checkpoint
}

func (*RequestHostCheckpoint) CacheLife added in v1.2.10

func (this *RequestHostCheckpoint) CacheLife() utils.CacheLife

func (*RequestHostCheckpoint) RequestValue

func (this *RequestHostCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestHostCheckpoint) ResponseValue

func (this *RequestHostCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestISPNameCheckpoint

type RequestISPNameCheckpoint struct {
	Checkpoint
}

func (*RequestISPNameCheckpoint) CacheLife added in v1.2.10

func (this *RequestISPNameCheckpoint) CacheLife() utils.CacheLife

func (*RequestISPNameCheckpoint) IsComposed

func (this *RequestISPNameCheckpoint) IsComposed() bool

func (*RequestISPNameCheckpoint) RequestValue

func (this *RequestISPNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestISPNameCheckpoint) ResponseValue

func (this *RequestISPNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestIsCNAMECheckpoint added in v0.5.8

type RequestIsCNAMECheckpoint struct {
	Checkpoint
}

func (*RequestIsCNAMECheckpoint) CacheLife added in v1.2.10

func (this *RequestIsCNAMECheckpoint) CacheLife() utils.CacheLife

func (*RequestIsCNAMECheckpoint) RequestValue added in v0.5.8

func (this *RequestIsCNAMECheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestIsCNAMECheckpoint) ResponseValue added in v0.5.8

func (this *RequestIsCNAMECheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestJSONArgCheckpoint

type RequestJSONArgCheckpoint struct {
	Checkpoint
}

RequestJSONArgCheckpoint ${requestJSON.arg}

func (*RequestJSONArgCheckpoint) CacheLife added in v1.2.10

func (this *RequestJSONArgCheckpoint) CacheLife() wafutils.CacheLife

func (*RequestJSONArgCheckpoint) RequestValue

func (this *RequestJSONArgCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestJSONArgCheckpoint) ResponseValue

func (this *RequestJSONArgCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestLengthCheckpoint

type RequestLengthCheckpoint struct {
	Checkpoint
}

func (*RequestLengthCheckpoint) CacheLife added in v1.2.10

func (this *RequestLengthCheckpoint) CacheLife() utils.CacheLife

func (*RequestLengthCheckpoint) RequestValue

func (this *RequestLengthCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestLengthCheckpoint) ResponseValue

func (this *RequestLengthCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestMethodCheckpoint

type RequestMethodCheckpoint struct {
	Checkpoint
}

func (*RequestMethodCheckpoint) CacheLife added in v1.2.10

func (this *RequestMethodCheckpoint) CacheLife() utils.CacheLife

func (*RequestMethodCheckpoint) RequestValue

func (this *RequestMethodCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestMethodCheckpoint) ResponseValue

func (this *RequestMethodCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestPathCheckpoint

type RequestPathCheckpoint struct {
	Checkpoint
}

func (*RequestPathCheckpoint) CacheLife added in v1.2.10

func (this *RequestPathCheckpoint) CacheLife() utils.CacheLife

func (*RequestPathCheckpoint) RequestValue

func (this *RequestPathCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestPathCheckpoint) ResponseValue

func (this *RequestPathCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestProtoCheckpoint

type RequestProtoCheckpoint struct {
	Checkpoint
}

func (*RequestProtoCheckpoint) CacheLife added in v1.2.10

func (this *RequestProtoCheckpoint) CacheLife() utils.CacheLife

func (*RequestProtoCheckpoint) RequestValue

func (this *RequestProtoCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestProtoCheckpoint) ResponseValue

func (this *RequestProtoCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRawRemoteAddrCheckpoint

type RequestRawRemoteAddrCheckpoint struct {
	Checkpoint
}

func (*RequestRawRemoteAddrCheckpoint) CacheLife added in v1.2.10

func (*RequestRawRemoteAddrCheckpoint) RequestValue

func (this *RequestRawRemoteAddrCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestRawRemoteAddrCheckpoint) ResponseValue

func (this *RequestRawRemoteAddrCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRefererBlockCheckpoint

type RequestRefererBlockCheckpoint struct {
	Checkpoint
}

RequestRefererBlockCheckpoint 防盗链

func (*RequestRefererBlockCheckpoint) CacheLife added in v1.2.10

func (this *RequestRefererBlockCheckpoint) CacheLife() utils.CacheLife

func (*RequestRefererBlockCheckpoint) RequestValue

func (this *RequestRefererBlockCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

RequestValue 计算checkpoint值 选项:allowEmpty, allowSameDomain, allowDomains

func (*RequestRefererBlockCheckpoint) ResponseValue

func (this *RequestRefererBlockCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRefererCheckpoint

type RequestRefererCheckpoint struct {
	Checkpoint
}

func (*RequestRefererCheckpoint) CacheLife added in v1.2.10

func (this *RequestRefererCheckpoint) CacheLife() utils.CacheLife

func (*RequestRefererCheckpoint) RequestValue

func (this *RequestRefererCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestRefererCheckpoint) ResponseValue

func (this *RequestRefererCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRefererOriginCheckpoint added in v1.3.2

type RequestRefererOriginCheckpoint struct {
	Checkpoint
}

func (*RequestRefererOriginCheckpoint) CacheLife added in v1.3.2

func (*RequestRefererOriginCheckpoint) RequestValue added in v1.3.2

func (this *RequestRefererOriginCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestRefererOriginCheckpoint) ResponseValue added in v1.3.2

func (this *RequestRefererOriginCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRemoteAddrCheckpoint

type RequestRemoteAddrCheckpoint struct {
	Checkpoint
}

func (*RequestRemoteAddrCheckpoint) CacheLife added in v1.2.10

func (this *RequestRemoteAddrCheckpoint) CacheLife() utils.CacheLife

func (*RequestRemoteAddrCheckpoint) RequestValue

func (this *RequestRemoteAddrCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestRemoteAddrCheckpoint) ResponseValue

func (this *RequestRemoteAddrCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRemotePortCheckpoint

type RequestRemotePortCheckpoint struct {
	Checkpoint
}

func (*RequestRemotePortCheckpoint) CacheLife added in v1.2.10

func (this *RequestRemotePortCheckpoint) CacheLife() utils.CacheLife

func (*RequestRemotePortCheckpoint) RequestValue

func (this *RequestRemotePortCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestRemotePortCheckpoint) ResponseValue

func (this *RequestRemotePortCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestRemoteUserCheckpoint

type RequestRemoteUserCheckpoint struct {
	Checkpoint
}

func (*RequestRemoteUserCheckpoint) CacheLife added in v1.2.10

func (this *RequestRemoteUserCheckpoint) CacheLife() utils.CacheLife

func (*RequestRemoteUserCheckpoint) RequestValue

func (this *RequestRemoteUserCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestRemoteUserCheckpoint) ResponseValue

func (this *RequestRemoteUserCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestSchemeCheckpoint

type RequestSchemeCheckpoint struct {
	Checkpoint
}

func (*RequestSchemeCheckpoint) CacheLife added in v1.2.10

func (this *RequestSchemeCheckpoint) CacheLife() utils.CacheLife

func (*RequestSchemeCheckpoint) RequestValue

func (this *RequestSchemeCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestSchemeCheckpoint) ResponseValue

func (this *RequestSchemeCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestURICheckpoint

type RequestURICheckpoint struct {
	Checkpoint
}

func (*RequestURICheckpoint) CacheLife added in v1.2.10

func (this *RequestURICheckpoint) CacheLife() utils.CacheLife

func (*RequestURICheckpoint) RequestValue

func (this *RequestURICheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestURICheckpoint) ResponseValue

func (this *RequestURICheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestURLCheckpoint

type RequestURLCheckpoint struct {
	Checkpoint
}

func (*RequestURLCheckpoint) CacheLife added in v1.2.10

func (this *RequestURLCheckpoint) CacheLife() utils.CacheLife

func (*RequestURLCheckpoint) RequestValue

func (this *RequestURLCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestURLCheckpoint) ResponseValue

func (this *RequestURLCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestUploadCheckpoint

type RequestUploadCheckpoint struct {
	Checkpoint
}

RequestUploadCheckpoint ${requestUpload.arg}

func (*RequestUploadCheckpoint) CacheLife added in v1.2.10

func (this *RequestUploadCheckpoint) CacheLife() utils.CacheLife

func (*RequestUploadCheckpoint) ParamOptions

func (this *RequestUploadCheckpoint) ParamOptions() *ParamOptions

func (*RequestUploadCheckpoint) RequestValue

func (this *RequestUploadCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestUploadCheckpoint) ResponseValue

func (this *RequestUploadCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type RequestUserAgentCheckpoint

type RequestUserAgentCheckpoint struct {
	Checkpoint
}

func (*RequestUserAgentCheckpoint) CacheLife added in v1.2.10

func (this *RequestUserAgentCheckpoint) CacheLife() utils.CacheLife

func (*RequestUserAgentCheckpoint) RequestValue

func (this *RequestUserAgentCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*RequestUserAgentCheckpoint) ResponseValue

func (this *RequestUserAgentCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type ResponseBodyCheckpoint

type ResponseBodyCheckpoint struct {
	Checkpoint
}

ResponseBodyCheckpoint ${responseBody}

func (*ResponseBodyCheckpoint) CacheLife added in v1.2.10

func (this *ResponseBodyCheckpoint) CacheLife() utils.CacheLife

func (*ResponseBodyCheckpoint) IsRequest

func (this *ResponseBodyCheckpoint) IsRequest() bool

func (*ResponseBodyCheckpoint) RequestValue

func (this *ResponseBodyCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*ResponseBodyCheckpoint) ResponseValue

func (this *ResponseBodyCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type ResponseBytesSentCheckpoint

type ResponseBytesSentCheckpoint struct {
	Checkpoint
}

ResponseBytesSentCheckpoint ${bytesSent}

func (*ResponseBytesSentCheckpoint) CacheLife added in v1.2.10

func (this *ResponseBytesSentCheckpoint) CacheLife() utils.CacheLife

func (*ResponseBytesSentCheckpoint) IsRequest

func (this *ResponseBytesSentCheckpoint) IsRequest() bool

func (*ResponseBytesSentCheckpoint) RequestValue

func (this *ResponseBytesSentCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*ResponseBytesSentCheckpoint) ResponseValue

func (this *ResponseBytesSentCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type ResponseGeneralHeaderLengthCheckpoint

type ResponseGeneralHeaderLengthCheckpoint struct {
	Checkpoint
}

func (*ResponseGeneralHeaderLengthCheckpoint) CacheLife added in v1.2.10

func (*ResponseGeneralHeaderLengthCheckpoint) IsComposed

func (this *ResponseGeneralHeaderLengthCheckpoint) IsComposed() bool

func (*ResponseGeneralHeaderLengthCheckpoint) IsRequest

func (this *ResponseGeneralHeaderLengthCheckpoint) IsRequest() bool

func (*ResponseGeneralHeaderLengthCheckpoint) RequestValue

func (this *ResponseGeneralHeaderLengthCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*ResponseGeneralHeaderLengthCheckpoint) ResponseValue

func (this *ResponseGeneralHeaderLengthCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type ResponseHeaderCheckpoint

type ResponseHeaderCheckpoint struct {
	Checkpoint
}

ResponseHeaderCheckpoint ${responseHeader.arg}

func (*ResponseHeaderCheckpoint) CacheLife added in v1.2.10

func (this *ResponseHeaderCheckpoint) CacheLife() utils.CacheLife

func (*ResponseHeaderCheckpoint) IsRequest

func (this *ResponseHeaderCheckpoint) IsRequest() bool

func (*ResponseHeaderCheckpoint) RequestValue

func (this *ResponseHeaderCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*ResponseHeaderCheckpoint) ResponseValue

func (this *ResponseHeaderCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type ResponseStatusCheckpoint

type ResponseStatusCheckpoint struct {
	Checkpoint
}

ResponseStatusCheckpoint ${bytesSent}

func (*ResponseStatusCheckpoint) CacheLife added in v1.2.10

func (this *ResponseStatusCheckpoint) CacheLife() utils.CacheLife

func (*ResponseStatusCheckpoint) IsRequest

func (this *ResponseStatusCheckpoint) IsRequest() bool

func (*ResponseStatusCheckpoint) RequestValue

func (this *ResponseStatusCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*ResponseStatusCheckpoint) ResponseValue

func (this *ResponseStatusCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type SampleRequestCheckpoint

type SampleRequestCheckpoint struct {
	Checkpoint
}

SampleRequestCheckpoint just a sample checkpoint, copy and change it for your new checkpoint

func (*SampleRequestCheckpoint) CacheLife added in v1.2.10

func (this *SampleRequestCheckpoint) CacheLife() utils.CacheLife

func (*SampleRequestCheckpoint) RequestValue

func (this *SampleRequestCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

func (*SampleRequestCheckpoint) ResponseValue

func (this *SampleRequestCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

type SampleResponseCheckpoint

type SampleResponseCheckpoint struct {
	Checkpoint
}

SampleResponseCheckpoint just a sample checkpoint, copy and change it for your new checkpoint

func (*SampleResponseCheckpoint) CacheLife added in v1.2.10

func (this *SampleResponseCheckpoint) CacheLife() utils.CacheLife

func (*SampleResponseCheckpoint) IsRequest

func (this *SampleResponseCheckpoint) IsRequest() bool

func (*SampleResponseCheckpoint) RequestValue

func (this *SampleResponseCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, sysErr error, userErr error)

func (*SampleResponseCheckpoint) ResponseValue

func (this *SampleResponseCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL