merge

package
v0.1.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: MulanPSL-2.0 Imports: 11 Imported by: 0

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,不直接序列化本结构)。

func Run

func Run(opt Options) (*Result, error)

Run 读取 CSV 并计算汇总;HumanWriter 默认 nil 时用 os.Stdout。

Source Files

  • merge.go

Jump to

Keyboard shortcuts

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