params

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package params contains private constants and structs. See also the spec: https://github.com/m-lab/ndt-server/blob/master/spec/ndt7-protocol.md

Index

Constants

View Source
const DownloadTimeout = 15 * time.Second

DownloadTimeout is the time after which the download must stop.

View Source
const DownloadURLPath = "/ndt/v7/download"

DownloadURLPath is the URL path used for the download.

View Source
const IOTimeout = 7 * time.Second

IOTimeout is the timeout for I/O operations.

View Source
const InitialMessageSize = 1 << 13

InitialMessageSize is initial size of uploaded messages.

View Source
const MaxMessageSize = 1 << 20

MaxMessageSize is the maximum accepted message size.

View Source
const ScalingFraction = 16

ScalingFraction sets the threshold for scaling binary messages. When the current binary message size is <= than 1/scalingFactor of the amount of bytes sent so far, we scale the message. This is documented in the appendix of the ndt7 specification.

View Source
const SecWebSocketProtocol = "net.measurementlab.ndt.v7"

SecWebSocketProtocol is the value of the Sec-WebSocket-Protocol header.

View Source
const UpdateInterval = 250 * time.Millisecond

UpdateInterval is the interval between client side upload measurements.

View Source
const UploadTimeout = 10 * time.Second

UploadTimeout is the time after which the upload must stop.

View Source
const UploadURLPath = "/ndt/v7/upload"

UploadURLPath is the URL path used for the download.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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