istats

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: May 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

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) UpdateFlow

func (f *FlowInfoBase) UpdateFlow()

UpdateFlow 流量状态更新

func (*FlowInfoBase) UpdateShadowFlow

func (f *FlowInfoBase) UpdateShadowFlow()

UpdateFlow 压测流量状态更新

Jump to

Keyboard shortcuts

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