Documentation ¶
Index ¶
- Variables
- type CC2Checkpoint
- func (this *CC2Checkpoint) CacheLife() wafutils.CacheLife
- func (this *CC2Checkpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *CC2Checkpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type CCCheckpoint
- func (this *CCCheckpoint) CacheLife() utils.CacheLife
- func (this *CCCheckpoint) Init()
- func (this *CCCheckpoint) Options() []OptionInterface
- func (this *CCCheckpoint) ParamOptions() *ParamOptions
- func (this *CCCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *CCCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *CCCheckpoint) Start()
- func (this *CCCheckpoint) Stop()
- type Checkpoint
- func (this *Checkpoint) Init()
- func (this *Checkpoint) IsComposed() bool
- func (this *Checkpoint) IsRequest() bool
- func (this *Checkpoint) Options() []OptionInterface
- func (this *Checkpoint) ParamOptions() *ParamOptions
- func (this *Checkpoint) Priority() int
- func (this *Checkpoint) RequestBodyIsEmpty(req requests.Request) bool
- func (this *Checkpoint) SetPriority(priority int)
- func (this *Checkpoint) Start()
- func (this *Checkpoint) Stop()
- type CheckpointDefinition
- type CheckpointInterface
- type FieldOption
- type KeyValue
- type OptionInterface
- type OptionsOption
- type ParamOptions
- type RequestAllCheckpoint
- func (this *RequestAllCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestAllCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestAllCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestArgCheckpoint
- func (this *RequestArgCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestArgCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestArgCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestArgsCheckpoint
- func (this *RequestArgsCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestArgsCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestArgsCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestBodyCheckpoint
- func (this *RequestBodyCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestBodyCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestBodyCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestCNAMECheckpoint
- func (this *RequestCNAMECheckpoint) CacheLife() utils.CacheLife
- func (this *RequestCNAMECheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestCNAMECheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestContentTypeCheckpoint
- func (this *RequestContentTypeCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestContentTypeCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestContentTypeCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestCookieCheckpoint
- func (this *RequestCookieCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestCookieCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestCookieCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestCookiesCheckpoint
- func (this *RequestCookiesCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestCookiesCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestCookiesCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestFormArgCheckpoint
- func (this *RequestFormArgCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestFormArgCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestFormArgCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestGeneralHeaderLengthCheckpoint
- func (this *RequestGeneralHeaderLengthCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestGeneralHeaderLengthCheckpoint) IsComposed() bool
- func (this *RequestGeneralHeaderLengthCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestGeneralHeaderLengthCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestGeoCityNameCheckpoint
- func (this *RequestGeoCityNameCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestGeoCityNameCheckpoint) IsComposed() bool
- func (this *RequestGeoCityNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestGeoCityNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestGeoCountryNameCheckpoint
- func (this *RequestGeoCountryNameCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestGeoCountryNameCheckpoint) IsComposed() bool
- func (this *RequestGeoCountryNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestGeoCountryNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestGeoProvinceNameCheckpoint
- func (this *RequestGeoProvinceNameCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestGeoProvinceNameCheckpoint) IsComposed() bool
- func (this *RequestGeoProvinceNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestGeoProvinceNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestHeaderCheckpoint
- func (this *RequestHeaderCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestHeaderCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestHeaderCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestHeaderNamesCheckpoint
- func (this *RequestHeaderNamesCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestHeaderNamesCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestHeaderNamesCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestHeadersCheckpoint
- func (this *RequestHeadersCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestHeadersCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestHeadersCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestHostCheckpoint
- func (this *RequestHostCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestHostCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestHostCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestISPNameCheckpoint
- func (this *RequestISPNameCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestISPNameCheckpoint) IsComposed() bool
- func (this *RequestISPNameCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestISPNameCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestIsCNAMECheckpoint
- func (this *RequestIsCNAMECheckpoint) CacheLife() utils.CacheLife
- func (this *RequestIsCNAMECheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestIsCNAMECheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestJSONArgCheckpoint
- func (this *RequestJSONArgCheckpoint) CacheLife() wafutils.CacheLife
- func (this *RequestJSONArgCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestJSONArgCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestLengthCheckpoint
- func (this *RequestLengthCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestLengthCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestLengthCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestMethodCheckpoint
- func (this *RequestMethodCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestMethodCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestMethodCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestPathCheckpoint
- func (this *RequestPathCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestPathCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestPathCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestProtoCheckpoint
- func (this *RequestProtoCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestProtoCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestProtoCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRawRemoteAddrCheckpoint
- func (this *RequestRawRemoteAddrCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRawRemoteAddrCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRawRemoteAddrCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRefererBlockCheckpoint
- func (this *RequestRefererBlockCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRefererBlockCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRefererBlockCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRefererCheckpoint
- func (this *RequestRefererCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRefererCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRefererCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRefererOriginCheckpoint
- func (this *RequestRefererOriginCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRefererOriginCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRefererOriginCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRemoteAddrCheckpoint
- func (this *RequestRemoteAddrCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRemoteAddrCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRemoteAddrCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRemotePortCheckpoint
- func (this *RequestRemotePortCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRemotePortCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRemotePortCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestRemoteUserCheckpoint
- func (this *RequestRemoteUserCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestRemoteUserCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestRemoteUserCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestSchemeCheckpoint
- func (this *RequestSchemeCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestSchemeCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestSchemeCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestURICheckpoint
- func (this *RequestURICheckpoint) CacheLife() utils.CacheLife
- func (this *RequestURICheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestURICheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestURLCheckpoint
- func (this *RequestURLCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestURLCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestURLCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestUploadCheckpoint
- func (this *RequestUploadCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestUploadCheckpoint) ParamOptions() *ParamOptions
- func (this *RequestUploadCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestUploadCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type RequestUserAgentCheckpoint
- func (this *RequestUserAgentCheckpoint) CacheLife() utils.CacheLife
- func (this *RequestUserAgentCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *RequestUserAgentCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type ResponseBodyCheckpoint
- func (this *ResponseBodyCheckpoint) CacheLife() utils.CacheLife
- func (this *ResponseBodyCheckpoint) IsRequest() bool
- func (this *ResponseBodyCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *ResponseBodyCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type ResponseBytesSentCheckpoint
- func (this *ResponseBytesSentCheckpoint) CacheLife() utils.CacheLife
- func (this *ResponseBytesSentCheckpoint) IsRequest() bool
- func (this *ResponseBytesSentCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *ResponseBytesSentCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type ResponseGeneralHeaderLengthCheckpoint
- func (this *ResponseGeneralHeaderLengthCheckpoint) CacheLife() utils.CacheLife
- func (this *ResponseGeneralHeaderLengthCheckpoint) IsComposed() bool
- func (this *ResponseGeneralHeaderLengthCheckpoint) IsRequest() bool
- func (this *ResponseGeneralHeaderLengthCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *ResponseGeneralHeaderLengthCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type ResponseHeaderCheckpoint
- func (this *ResponseHeaderCheckpoint) CacheLife() utils.CacheLife
- func (this *ResponseHeaderCheckpoint) IsRequest() bool
- func (this *ResponseHeaderCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *ResponseHeaderCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type ResponseStatusCheckpoint
- func (this *ResponseStatusCheckpoint) CacheLife() utils.CacheLife
- func (this *ResponseStatusCheckpoint) IsRequest() bool
- func (this *ResponseStatusCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *ResponseStatusCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type SampleRequestCheckpoint
- func (this *SampleRequestCheckpoint) CacheLife() utils.CacheLife
- func (this *SampleRequestCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, hasRequestBody bool, sysErr error, userErr error)
- func (this *SampleRequestCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
- type SampleResponseCheckpoint
- func (this *SampleResponseCheckpoint) CacheLife() utils.CacheLife
- func (this *SampleResponseCheckpoint) IsRequest() bool
- func (this *SampleResponseCheckpoint) RequestValue(req requests.Request, param string, options maps.Map, ruleId int64) (value any, sysErr error, userErr error)
- func (this *SampleResponseCheckpoint) ResponseValue(req requests.Request, resp *requests.Response, param string, options maps.Map, ...) (value any, hasRequestBody bool, sysErr error, userErr error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
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 (*CCCheckpoint) ResponseValue ¶
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 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 ¶
type RequestArgCheckpoint ¶
type RequestArgCheckpoint struct {
Checkpoint
}
func (*RequestArgCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestArgCheckpoint) CacheLife() utils.CacheLife
func (*RequestArgCheckpoint) RequestValue ¶
type RequestArgsCheckpoint ¶
type RequestArgsCheckpoint struct {
Checkpoint
}
func (*RequestArgsCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestArgsCheckpoint) CacheLife() utils.CacheLife
func (*RequestArgsCheckpoint) RequestValue ¶
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 ¶
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
type RequestContentTypeCheckpoint ¶
type RequestContentTypeCheckpoint struct {
Checkpoint
}
func (*RequestContentTypeCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestContentTypeCheckpoint) CacheLife() utils.CacheLife
func (*RequestContentTypeCheckpoint) RequestValue ¶
type RequestCookieCheckpoint ¶
type RequestCookieCheckpoint struct {
Checkpoint
}
func (*RequestCookieCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestCookieCheckpoint) CacheLife() utils.CacheLife
func (*RequestCookieCheckpoint) RequestValue ¶
type RequestCookiesCheckpoint ¶
type RequestCookiesCheckpoint struct {
Checkpoint
}
func (*RequestCookiesCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestCookiesCheckpoint) CacheLife() utils.CacheLife
func (*RequestCookiesCheckpoint) RequestValue ¶
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 ¶
type RequestGeneralHeaderLengthCheckpoint ¶
type RequestGeneralHeaderLengthCheckpoint struct {
Checkpoint
}
func (*RequestGeneralHeaderLengthCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestGeneralHeaderLengthCheckpoint) CacheLife() utils.CacheLife
func (*RequestGeneralHeaderLengthCheckpoint) IsComposed ¶
func (this *RequestGeneralHeaderLengthCheckpoint) IsComposed() bool
func (*RequestGeneralHeaderLengthCheckpoint) RequestValue ¶
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 ¶
type RequestGeoCountryNameCheckpoint ¶
type RequestGeoCountryNameCheckpoint struct {
Checkpoint
}
func (*RequestGeoCountryNameCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestGeoCountryNameCheckpoint) CacheLife() utils.CacheLife
func (*RequestGeoCountryNameCheckpoint) IsComposed ¶
func (this *RequestGeoCountryNameCheckpoint) IsComposed() bool
func (*RequestGeoCountryNameCheckpoint) RequestValue ¶
type RequestGeoProvinceNameCheckpoint ¶
type RequestGeoProvinceNameCheckpoint struct {
Checkpoint
}
func (*RequestGeoProvinceNameCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestGeoProvinceNameCheckpoint) CacheLife() utils.CacheLife
func (*RequestGeoProvinceNameCheckpoint) IsComposed ¶
func (this *RequestGeoProvinceNameCheckpoint) IsComposed() bool
func (*RequestGeoProvinceNameCheckpoint) RequestValue ¶
type RequestHeaderCheckpoint ¶
type RequestHeaderCheckpoint struct {
Checkpoint
}
func (*RequestHeaderCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestHeaderCheckpoint) CacheLife() utils.CacheLife
func (*RequestHeaderCheckpoint) RequestValue ¶
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
type RequestHeadersCheckpoint ¶
type RequestHeadersCheckpoint struct {
Checkpoint
}
func (*RequestHeadersCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestHeadersCheckpoint) CacheLife() utils.CacheLife
func (*RequestHeadersCheckpoint) RequestValue ¶
type RequestHostCheckpoint ¶
type RequestHostCheckpoint struct {
Checkpoint
}
func (*RequestHostCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestHostCheckpoint) CacheLife() utils.CacheLife
func (*RequestHostCheckpoint) RequestValue ¶
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 ¶
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
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 ¶
type RequestLengthCheckpoint ¶
type RequestLengthCheckpoint struct {
Checkpoint
}
func (*RequestLengthCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestLengthCheckpoint) CacheLife() utils.CacheLife
func (*RequestLengthCheckpoint) RequestValue ¶
type RequestMethodCheckpoint ¶
type RequestMethodCheckpoint struct {
Checkpoint
}
func (*RequestMethodCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestMethodCheckpoint) CacheLife() utils.CacheLife
func (*RequestMethodCheckpoint) RequestValue ¶
type RequestPathCheckpoint ¶
type RequestPathCheckpoint struct {
Checkpoint
}
func (*RequestPathCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestPathCheckpoint) CacheLife() utils.CacheLife
func (*RequestPathCheckpoint) RequestValue ¶
type RequestProtoCheckpoint ¶
type RequestProtoCheckpoint struct {
Checkpoint
}
func (*RequestProtoCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestProtoCheckpoint) CacheLife() utils.CacheLife
func (*RequestProtoCheckpoint) RequestValue ¶
type RequestRawRemoteAddrCheckpoint ¶
type RequestRawRemoteAddrCheckpoint struct {
Checkpoint
}
func (*RequestRawRemoteAddrCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestRawRemoteAddrCheckpoint) CacheLife() utils.CacheLife
func (*RequestRawRemoteAddrCheckpoint) RequestValue ¶
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
type RequestRefererCheckpoint ¶
type RequestRefererCheckpoint struct {
Checkpoint
}
func (*RequestRefererCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestRefererCheckpoint) CacheLife() utils.CacheLife
func (*RequestRefererCheckpoint) RequestValue ¶
type RequestRefererOriginCheckpoint ¶ added in v1.3.2
type RequestRefererOriginCheckpoint struct {
Checkpoint
}
func (*RequestRefererOriginCheckpoint) CacheLife ¶ added in v1.3.2
func (this *RequestRefererOriginCheckpoint) CacheLife() utils.CacheLife
func (*RequestRefererOriginCheckpoint) RequestValue ¶ added in v1.3.2
type RequestRemoteAddrCheckpoint ¶
type RequestRemoteAddrCheckpoint struct {
Checkpoint
}
func (*RequestRemoteAddrCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestRemoteAddrCheckpoint) CacheLife() utils.CacheLife
func (*RequestRemoteAddrCheckpoint) RequestValue ¶
type RequestRemotePortCheckpoint ¶
type RequestRemotePortCheckpoint struct {
Checkpoint
}
func (*RequestRemotePortCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestRemotePortCheckpoint) CacheLife() utils.CacheLife
func (*RequestRemotePortCheckpoint) RequestValue ¶
type RequestRemoteUserCheckpoint ¶
type RequestRemoteUserCheckpoint struct {
Checkpoint
}
func (*RequestRemoteUserCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestRemoteUserCheckpoint) CacheLife() utils.CacheLife
func (*RequestRemoteUserCheckpoint) RequestValue ¶
type RequestSchemeCheckpoint ¶
type RequestSchemeCheckpoint struct {
Checkpoint
}
func (*RequestSchemeCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestSchemeCheckpoint) CacheLife() utils.CacheLife
func (*RequestSchemeCheckpoint) RequestValue ¶
type RequestURICheckpoint ¶
type RequestURICheckpoint struct {
Checkpoint
}
func (*RequestURICheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestURICheckpoint) CacheLife() utils.CacheLife
func (*RequestURICheckpoint) RequestValue ¶
type RequestURLCheckpoint ¶
type RequestURLCheckpoint struct {
Checkpoint
}
func (*RequestURLCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestURLCheckpoint) CacheLife() utils.CacheLife
func (*RequestURLCheckpoint) RequestValue ¶
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 ¶
type RequestUserAgentCheckpoint ¶
type RequestUserAgentCheckpoint struct {
Checkpoint
}
func (*RequestUserAgentCheckpoint) CacheLife ¶ added in v1.2.10
func (this *RequestUserAgentCheckpoint) CacheLife() utils.CacheLife
func (*RequestUserAgentCheckpoint) RequestValue ¶
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 ¶
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 ¶
type ResponseGeneralHeaderLengthCheckpoint ¶
type ResponseGeneralHeaderLengthCheckpoint struct {
Checkpoint
}
func (*ResponseGeneralHeaderLengthCheckpoint) CacheLife ¶ added in v1.2.10
func (this *ResponseGeneralHeaderLengthCheckpoint) CacheLife() utils.CacheLife
func (*ResponseGeneralHeaderLengthCheckpoint) IsComposed ¶
func (this *ResponseGeneralHeaderLengthCheckpoint) IsComposed() bool
func (*ResponseGeneralHeaderLengthCheckpoint) IsRequest ¶
func (this *ResponseGeneralHeaderLengthCheckpoint) IsRequest() bool
func (*ResponseGeneralHeaderLengthCheckpoint) RequestValue ¶
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 ¶
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 ¶
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 ¶
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 ¶
Source Files ¶
- cc.go
- cc2.go
- checkpoint.go
- checkpoint_definition.go
- checkpoint_interface.go
- option.go
- option_field.go
- option_options.go
- param_option.go
- request_all.go
- request_arg.go
- request_args.go
- request_body.go
- request_cname.go
- request_content_type.go
- request_cookie.go
- request_cookies.go
- request_form_arg.go
- request_general_header_length.go
- request_geo_city_name.go
- request_geo_country_name.go
- request_geo_province_name.go
- request_header.go
- request_header_names.go
- request_headers.go
- request_host.go
- request_is_cname.go
- request_isp_name.go
- request_json_arg.go
- request_length.go
- request_method.go
- request_path.go
- request_proto.go
- request_raw_remote_addr.go
- request_referer.go
- request_referer_block.go
- request_referer_origin.go
- request_remote_addr.go
- request_remote_port.go
- request_remote_user.go
- request_scheme.go
- request_upload.go
- request_uri.go
- request_url.go
- request_user_agent.go
- response_body.go
- response_bytes_sent.go
- response_general_header_length.go
- response_header.go
- response_status.go
- sample_request.go
- sample_response.go
- utils.go