receiver

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: 2

Documentation

Overview

Package receiver implements the messages receiver. It can be used both by the download and the upload subtests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDownloadReceiverAsync added in v0.18.0

func StartDownloadReceiverAsync(ctx context.Context, conn *websocket.Conn, data *model.ArchivalData) context.Context

StartDownloadReceiverAsync starts the receiver in a background goroutine and saves messages received from the client in the given archival data. The returned context may be used to detect when the receiver has completed.

This receiver will not tolerate receiving binary messages. It will terminate early if such a message is received.

Liveness guarantee: the goroutine will always terminate after a MaxRuntime timeout.

func StartUploadReceiverAsync added in v0.18.0

func StartUploadReceiverAsync(ctx context.Context, conn *websocket.Conn, data *model.ArchivalData) context.Context

StartUploadReceiverAsync is like StartDownloadReceiverAsync except that it tolerates incoming binary messages, sent by "upload" measurement clients to create network load, and therefore must be allowed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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