saver

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

Documentation

Overview

Package saver contains the code for saving results.

Generally speaking, a ndt7 download or upload tests consists of two independent streams of data that need to be saved.

During the download, there is a stream of Measurements performed by the server that contain TCPInfo and BBRInfo. For full duplex clients, we also have a stream of application-level measurements performed by the client that contain timestamps and number of received bytes.

During the upload, there is a stream of Measurements performed by the server that contain TCPInfo, timestamps, and number of bytes that we have received so far. Clients implementing BBR or at least using Linux will additionally send us BBR and TCPInfo measurements.

Thus, in both cases we need to have a functionality for zipping together the channel of measurements originating at the client and the channel originating at the server. This is the saver.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveAll

func SaveAll(resultfp *results.File, serverch, clientch <-chan model.Measurement)

SaveAll saves all the measurements coming from the channel where server performed measurements are posted (serverch) and from the channel where client performed measurements are posted (clientch). Measurements will be saved in the results file (resultfp).

In any case, the input channels will be drained by this function. The input channels must have the following properties:

1. they MUST be closed when done

2. they MUST eventually terminate

If these two properties are satisfied, SaveAll will eventually terminate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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