download

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package download contains ndt7 download code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, conn websocketx.Conn, ch chan<- spec.Measurement) error

Run runs the download test. It runs until the ctx expires or the maximum download time expires. Uses the provided websocket connection. Emits zero or more measurements to the provided channel. Returns the error that caused the download loop to stop, which is mainly useful when testing, since the normal usage of this function is to be run in a separate goroutine. Note that this function would block if you don't read from the channel.

Note that this function closes conn and ch when exiting.

Types

This section is empty.

Jump to

Keyboard shortcuts

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