Documentation ¶
Index ¶
Constants ¶
View Source
const ( IndexClient = 1 IndexServer = 2 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { Agent Agent //starter:inject("#") ServiceName string //starter:inject("${benchmark.client.service}") Enabled bool //starter:inject("${benchmark.client.enabled}") Interval int //starter:inject("${benchmark.client.interval}") RequestX int //starter:inject("${benchmark.client.request-x}") ResponseX int //starter:inject("${benchmark.client.response-x}") PayloadSize int //starter:inject("${benchmark.client.payload-size}") RemoteURL string //starter:inject("${benchmark.client.remote-url}") }
Client ...
type Counter ¶
type Counter struct { RxBytes int64 `json:"rx_bytes"` RxPacks int64 `json:"rx_packs"` TxBytes int64 `json:"tx_bytes"` TxPacks int64 `json:"tx_packs"` Startup lang.Time `json:"startup"` Now lang.Time `json:"now"` }
Counter ... 收发数据计数器
func ParseCounter ¶
ParseCounter ... 解析 JSON 形式的 Counter
type Pack ¶
type Pack struct { Type PackType RequestX int ResponseX int // contains filtered or unexported fields }
Pack ...
type PackType ¶
type PackType string
PackType ...
type ProxyAgent ¶
type ProxyAgent struct { Host1 string //starter:inject("${benchmark.core1.host}") Port1 int //starter:inject("${benchmark.core1.port}") Host2 string //starter:inject("${benchmark.core2.host}") Port2 int //starter:inject("${benchmark.core2.port}") // contains filtered or unexported fields }
ProxyAgent ... 实现: Agent
Click to show internal directories.
Click to hide internal directories.