Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client holds endpoint URLs and the HTTP client used for measurement.
type ProgressFunc ¶
type ProgressFunc func(Progress)
ProgressFunc receives live progress; may be nil.
type Result ¶
type Result struct {
Timestamp time.Time `json:"timestamp"`
ServerColo string `json:"server_colo"`
Latency time.Duration `json:"latency_ns"`
Jitter time.Duration `json:"jitter_ns"`
DownloadMbps float64 `json:"download_mbps"`
UploadMbps float64 `json:"upload_mbps"`
}
Result is the single contract between measurement and consumers.
Click to show internal directories.
Click to hide internal directories.