Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlowInfoBase ¶
type FlowInfoBase struct {
Ctime int64 `json:"ctime"` // 创建时间
HasFlow bool `json:"hasFlow"` // 是否有请求流量
FirstFlowTime int64 `json:"firstFlowTime"` // 首次请求时间
LastFlowTime int64 `json:"lastFlowTime"` // 最后一次请求时间
HasShadowFlow bool `json:"hasShadowFlow"` // 是否有影子表请求流量
FirstShadowFlowTime int64 `json:"firstShadowFlowTime"` // 首次请求影子表时间
LastShadowFlowTime int64 `json:"lastShadowFlowTime"` // 最后一次请求影子表时间
ShadowSwitch string `json:"shadowSwitch"` // 影子流量开关, on打开, off关闭, watch观察者模式(关闭且打印影子日志)
}
flowInfo 请求流量信息
func NewFlowInfoBase ¶
func NewFlowInfoBase(shadowSwitch string) FlowInfoBase
func (*FlowInfoBase) UpdateShadowFlow ¶
func (f *FlowInfoBase) UpdateShadowFlow()
UpdateFlow 压测流量状态更新
Click to show internal directories.
Click to hide internal directories.