mlab

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoServers = errors.New("no M-Lab servers available")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New() *Client

func (*Client) GetResult

func (c *Client) GetResult() *provider.Result

func (*Client) Init

func (c *Client) Init() error

func (*Client) IsAvailable

func (c *Client) IsAvailable() bool

func (*Client) MeasureDownload

func (c *Client) MeasureDownload(speedChan chan<- float64) error

func (*Client) MeasureJitter

func (c *Client) MeasureJitter(samples int) (time.Duration, error)

func (*Client) MeasureLatency

func (c *Client) MeasureLatency() (time.Duration, error)

func (*Client) MeasureUpload

func (c *Client) MeasureUpload(duration time.Duration, speedChan chan<- float64) error

func (*Client) Name

func (c *Client) Name() string

type Server

type Server struct {
	Machine string
	BaseURL string
}

Jump to

Keyboard shortcuts

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