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.
Click to show internal directories.
Click to hide internal directories.