measurer

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: 12 Imported by: 0

Documentation

Overview

Package measurer collects metrics from a socket connection and returns them for consumption.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(
	ctx context.Context, conn *websocket.Conn, UUID string,
) <-chan model.Measurement

Start runs the measurement loop in a background goroutine and emits the measurements on the returned channel.

Liveness guarantee: the measurer will always terminate after a timeout of DefaultRuntime seconds, provided that the consumer continues reading from the returned channel.

Types

This section is empty.

Jump to

Keyboard shortcuts

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