Documentation
¶
Overview ¶
Package merge 根据双端 CSV 与 README 公式汇总指标。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
ClientPath string
ServerPath string
TXTOutPath string // 为空则写 client.csv 同目录 report.txt
JSONOutPath string // 非空则写入 JSON
HumanWriter io.Writer
}
Options 为 merge 输入参数。
type Result ¶
type Result struct {
Delay1AvgMs float64
Delay2AvgMs float64
Delay1Samples int
Delay2Samples int
Loss1 float64
Loss2 float64
BW1Mbps float64
BW2Mbps float64
ULSent int64
ULRecv int64
DLSent int64
DLRecv int64
ULUnderflowCount int64
ULOverflowCount int64
DLUnderflowCount int64
DLOverflowCount int64
}
Result 为一次 merge 的汇总结果(Go 内存态;--o-json 使用 mergeSummaryJSON,不直接序列化本结构)。
Source Files
¶
- merge.go
Click to show internal directories.
Click to hide internal directories.