Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MNdt MeasureNdt MOokla MeasureOokla MSamples = make(map[int]RttSample) MBytes int64 = 0 MMeta Meta MetaD Metadata MetaFile string )
Functions ¶
Types ¶
type MeasureNdt ¶
type MeasureNdt struct {
Download float64 `json:"speedtest_ndt7_download"`
DownloadLatency float64 `json:"speedtest_ndt7_downloadlatency"`
DownloadRetrans float64 `json:"speedtest_ndt7_downloadretrans"`
Server string `json:"speedtest_ndt7_server"`
ServerIP net.IP `json:"speedtest_ndt7_server_ip"`
Upload float64 `json:"speedtest_ndt7_upload"`
}
type MeasureOokla ¶
type MeasureOokla struct {
Download float64 `json:"speedtest_ookla_download"`
Jitter float64 `json:"speedtest_ookla_jitter"`
Latency float64 `json:"speedtest_ookla_latency"`
PktLoss2 float64 `json:"speedtest_ookla_pktloss2"`
ServerHost string `json:"speedtest_ookla_server_host"`
ServerId int `json:"speedtest_ookla_server_id"`
ServerName string `json:"speedtest_ookla_server_name"`
Upload float64 `json:"speedtest_ookla_upload"`
}
type Measurements ¶
type Measurements struct {
Ndt7 *MeasureNdt `json:"ndt7,omitempty"`
Ookla *MeasureOokla `json:"ookla,omitempty"`
RttSamples []RttSample `json:"rtt_samples"`
BytesConsumed int64 `json:"test_bytes_consumed"`
}
type Meta ¶
type Meta struct {
ID string `json:"Id"`
Time float64 `json:"Time"`
ToolStartTime float64 `json:"Tool_start_time"`
ToolEndTime float64 `json:"Tool_end_time"`
SpeedtestStartTime float64 `json:"Speedtest_start_time"`
SpeedtestEndTime float64 `json:"Speedtest_end_time"`
PingStartTime float64 `json:"Ping_start_time"`
PingEndTime float64 `json:"Ping_end_time"`
Interface string `json:"Interface"`
InterfaceIP []net.IP `json:"Interface_ip"`
}
type Metadata ¶
type Metadata struct {
Measurements Measurements `json:"Measurements"`
Meta Meta `json:"Meta"`
}
Click to show internal directories.
Click to hide internal directories.