sender

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package sender implements the upload sender.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(conn *websocket.Conn, src <-chan model.Measurement) <-chan model.Measurement

Start starts the sender in a background goroutine. The sender will send to the client the measurement messages coming from |src|. These messages will also be emitted to the returned channel.

Liveness guarantee: the sender will not be stuck sending for more then the MaxRuntime of the subtest, provided that the consumer will continue reading from the returned channel. This is enforced by setting the write deadline to MaxRuntime + time.Now.

Types

This section is empty.

Jump to

Keyboard shortcuts

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