speedtest

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Server          sthttp.Server
	SpeedtestClient *sthttp.Client
	AllServers      []sthttp.Server
	ClosestServers  []sthttp.Server
}

Client defines the Speedtest client

func NewClient

func NewClient(configURL string, serversURL string) (*Client, error)

NewClient defines a new client for Speedtest

func (*Client) NetworkMetrics

func (client *Client) NetworkMetrics() map[string]float64

Jump to

Keyboard shortcuts

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