app

package
v2.0.0-alpha.1+incompa... Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2018 License: GPL-2.0, GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcMbps

func CalcMbps(start time.Time, finish time.Time, numbytes int) (mbps float64)

func DownloadTest

func DownloadTest(conn net.Conn, seedbytes int, numseconds int) (results float64)

DownloadTest runs download tests through numbytes until a download test takes more than numseconds

func GetBestServer

func GetBestServer() (bestserver server.Server, err error)

GetBestServer gets the first in the list

func PingTest

func PingTest(conn net.Conn, numtests int) (results int64)

PingTest gets roundtrip time to issue the "PING" command

func UploadTest

func UploadTest(conn net.Conn, seedbytes int, numseconds int) (results float64)

UploadTest runs download tests through numbytes until a download test takes more than numseconds

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL