speedtest
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package speedtest contains both server and client code forrunning speedtests between tailscale nodes.
Index¶
Constants¶
const (MinDuration = 5 *time.Second// minimum duration for a testDefaultDuration =MinDuration// default duration for a testMaxDuration = 30 *time.Second// maximum duration for a testDefaultPort = 20333)
Variables¶
This section is empty.
Functions¶
Types¶
typeResult¶
type Result struct {Bytesint// number of bytes sent/received during the intervalIntervalStarttime.Time// start of the intervalIntervalEndtime.Time// end of the intervalTotalbool// if true, this result struct represents the entire test, rather than a segment of the test}This represents the Result of a speedtest within a specific interval
funcRunClient¶
RunClient dials the given address and starts a speedtest.It returns any errors that come up in the tests.If there are no errors in the test, it returns a slice of results.