sender

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Overview

Package sender implements the download sender.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, conn *websocket.Conn, data *model.ArchivalData, params *Params) error

Start sends binary messages (bulk download) and measurement messages (status messages) to the client conn. Each measurement message will also be saved to data.

Liveness guarantee: the sender will not be stuck sending for more than the MaxRuntime of the subtest. This is enforced by setting the write deadline to Time.Now() + MaxRuntime.

Types

type Params added in v0.20.19

type Params struct {
	IsEarlyExit bool
	MaxBytes    int64
}

Params defines the parameters for the sender to end the test early.

Jump to

Keyboard shortcuts

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