fast

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UseHTTPS = true

UseHTTPS sets if HTTPS is used

Functions

func GetDefaultURL

func GetDefaultURL() (url string)

GetDefaultURL returns the fallback download URL

func GetSpeedtestConfig added in v1.2.0

func GetSpeedtestConfig(urlCount uint64) (client Client, targets []Target, err error)

GetSpeedtestConfig fetches the client's network info and a list of download targets from fast.com.

Types

type Client added in v1.2.0

type Client struct {
	IP      string
	ISP     string
	City    string
	Country string
}

Client describes the network fast.com sees this test running from.

type Target added in v1.2.0

type Target struct {
	URL     string
	City    string
	Country string
}

Target is a single download endpoint fast.com assigned for this test.

Jump to

Keyboard shortcuts

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