Documentation ¶
Index ¶
- Variables
- type Tester
- func (tester *Tester) Download(server sthttp.Server) float64
- func (tester *Tester) FindServer(id string, serversList []sthttp.Server) sthttp.Server
- func (tester *Tester) ListServers(configURL string, serversURL string, blacklist []string) (err error)
- func (tester *Tester) Upload(server sthttp.Server) float64
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // DefaultDLSizes defines the default download sizes DefaultDLSizes = []int{350, 500, 750, 1000, 1500, 2000, 2500, 3000, 3500, 4000} // DefaultULSizes defines the default upload sizes DefaultULSizes = []int{int(0.25 * 1024 * 1024), int(0.5 * 1024 * 1024), int(1.0 * 1024 * 1024), int(1.5 * 1024 * 1024), int(2.0 * 1024 * 1024)} )
Functions ¶
This section is empty.
Types ¶
type Tester ¶
type Tester struct { Client *sthttp.Client DLSizes []int ULSizes []int Quiet bool Report bool Debug bool AlgoType string }
Tester defines a Speedtester client tester
func NewTester ¶
func NewTester(client *sthttp.Client, dlsizes []int, ulsizes []int, quiet bool, report bool) *Tester
NewTester creates a new Tester struct. should probably make this more conventional with a "make_tester" or similar
func (*Tester) FindServer ¶
FindServer will find a specific server in the servers list
Click to show internal directories.
Click to hide internal directories.