Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Speedtest ¶
type Speedtest struct { TestStartTime time.Time // When did the test start? TestDuration time.Duration // How long did the test take? Result *SpeedtestResult // Results from interacting with the remote server }
type SpeedtestResult ¶
type SpeedtestResult struct { UploadMbps float64 // Upload bandwidth in Mbps DownloadMbps float64 // Download bandwidth in Mbps PingLatencyMs time.Duration // Ping to test server in ms }
SpeedtestResult encapsulates the results strictly required for the speedtest. Duration is omitted here since it's not strictly needed (see parent object)
Click to show internal directories.
Click to hide internal directories.