Documentation ¶
Index ¶
- Constants
- func BatchTestLinks(links []string, max int, runFuncs []RunFunc) <-chan TestResult
- func DownloadLinksSpeed(links []string, max int) <-chan TestResult
- func PingLinksLatency(links []string, max int, runPings []RunFunc) <-chan TestResult
- func RenderDownloadLinksSpeed(links []string, max int, fontPath string, pngPath string, language string, ...) error
- func RenderDownloadLinksSpeedAndroid(links []string, max int, fontPath string, pngPath string, language string, ...) <-chan TestResult
- type PingResult
- type RunFunc
- type TCPPing
- type TestResult
Constants ¶
View Source
const PROTOCOL_SPEED = "speed"
View Source
const PROTOCOL_TRAFFIC = "traffic"
Variables ¶
This section is empty.
Functions ¶
func BatchTestLinks ¶ added in v0.9.0
func BatchTestLinks(links []string, max int, runFuncs []RunFunc) <-chan TestResult
func DownloadLinksSpeed ¶ added in v0.9.0
func DownloadLinksSpeed(links []string, max int) <-chan TestResult
func PingLinksLatency ¶ added in v0.9.0
func PingLinksLatency(links []string, max int, runPings []RunFunc) <-chan TestResult
func RenderDownloadLinksSpeed ¶ added in v0.9.0
func RenderDownloadLinksSpeedAndroid ¶ added in v0.9.0
Types ¶
type PingResult ¶
type PingResult struct {
// contains filtered or unexported fields
}
func (PingResult) Get ¶
func (pingResult PingResult) Get() (int64, error)
type TCPPing ¶
type TCPPing struct {
// contains filtered or unexported fields
}
func NewTCPPing ¶
func (TCPPing) Start ¶
func (tcpping TCPPing) Start() <-chan PingResult
Click to show internal directories.
Click to hide internal directories.