Documentation
¶
Overview ¶
Package sessionmeta 负责测试配置快照的读写。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meta ¶
type Meta struct {
TestID string `json:"test_id"`
Size int `json:"size"`
DurationSec float64 `json:"duration_sec"`
SampleIntervalSec float64 `json:"sample_interval_sec"`
ServerAddr string `json:"server_addr"`
ULBandwidth string `json:"ul_bandwidth"`
DLBandwidth string `json:"dl_bandwidth"`
GracePeriodSec float64 `json:"grace_period_sec"`
TimeDeltaNs int64 `json:"time_delta_ns"`
ULIntervalNs int64 `json:"ul_interval_ns"`
DLIntervalNs int64 `json:"dl_interval_ns"`
ULPacketCount int64 `json:"ul_packet_count"`
DLPacketCount int64 `json:"dl_packet_count"`
ULPPS int64 `json:"ul_pps"`
DLPPS int64 `json:"dl_pps"`
ULTargetMbps float64 `json:"ul_target_mbps"`
DLTargetMbps float64 `json:"dl_target_mbps"`
ULActualMbps float64 `json:"ul_actual_mbps"`
DLActualMbps float64 `json:"dl_actual_mbps"`
OutputRoot string `json:"output_root"`
}
Meta 为客户端写入、merge 读取的配置快照(与一次 client Run 的 CLI/派生参数对齐)。 核心四键与 report.txt 表头对应:test_id→Test Name,duration_sec→Duration(sec), sample_interval_sec→Interval(sec),size→Packet Size(byte)。 扩展字段(server、带宽字符串、grace、time_delta、schedule 派生值、输出根等)供归档与 merge 的 `--o-json` 嵌入完整上下文;`report.txt` 仅节选 Server Address 与上下行带宽三行(见 report 包)。 旧版仅四键的 config.json 仍可被 merge 读取。
Source Files
¶
- sessionmeta.go
Click to show internal directories.
Click to hide internal directories.