# Functions
ClearRules clears all hotspot param flow rules.
ClearRulesOfResource clears resource level hotspot param flow rules.
GetRules returns all the mock rules based on copy.
GetRulesOfResource returns specific resource's mock rules based on copy.
No description provided by the author
LoadRules replaces all mock rules with the given rules.
LoadRulesOfResource loads the given resource's mock rules to the rule manager, while all previous resource's rules will be replaced.
NeedReportRequest 需要上报的请求.
WalkAndSet 遍历并且替换,从field中找到匹配的json属性,如果找到则把属性替换为val.
# Constants
并.
No description provided by the author
包含匹配.
ctx超时时间.
什么也不做,默认行为.
No description provided by the author
精确匹配.
作用于整个方法.
No description provided by the author
JsonSTag json tag标识.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
数值类型,涵盖[int,int32,int64,float32,float64].
No description provided by the author
No description provided by the author
不替换.
OnceMaxReportLimit 一次最多上报200个请求.
No description provided by the author
或.
No description provided by the author
作用于参数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
未知类型,为了兼容.
前缀匹配.
RandStr1 随机字符串函数.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
正则匹配.
替换请求.
替换响应.
No description provided by the author
后缀匹配.
No description provided by the author
TimeNanoFunc 时间那秒.
TimeSecFunc 获取秒.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
AdditionalItem 附加结构体.
Rule mock 规则.
RuleItem 规则子项,针对具体参数.
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
AdditionalType 附加类型,Web Header/ grpc context.
ControlBehavior indicates the traffic shaping behaviour.
MatchPattern 匹配模式 0:精确匹配,1:前缀匹配,2:后缀匹配,3:包含匹配,4:正则匹配.
Op 操作类型,并或者或.
ParameterSourceType 参数来源类型.
ParamKind represents the Param kind.
ReplaceMode mock替换模式,0:不替换,1:替换响应,2:替换请求.
Strategy 表示作用范围策略 0:整个方法,1:具体参数.
TrafficControllerGenFunc represents the TrafficShapingController generator function of a specific control behavior.