Documentation
¶
Overview ¶
Package report turns a flow's live counters into streaming interval reports and an end-of-run summary, emitted to a pluggable sink (human/json/...). See DESIGN.md §7.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Human ¶
type Human struct {
// contains filtered or unexported fields
}
Human writes human-readable lines to w.
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON writes one JSON object per line (json-lines).
type Sample ¶
type Sample struct {
Elapsed time.Duration
Bytes uint64
Packets uint64
BitsPerSec float64 // windowed throughput at this sample
}
Sample is a point-in-time reading during a run.
Click to show internal directories.
Click to hide internal directories.