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 ¶
const DownloadTimeout = 15 * time.Second
DownloadTimeout is the time after which the download must stop.
const DownloadURLPath = "/ndt/v7/download"
DownloadURLPath is the URL path used for the download.
const IOTimeout = 7 * time.Second
IOTimeout is the timeout for I/O operations.
const InitialMessageSize = 1 << 13
InitialMessageSize is initial size of uploaded messages.
const MaxMessageSize = 1 << 20
MaxMessageSize is the maximum accepted message size.
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.
const SecWebSocketProtocol = "net.measurementlab.ndt.v7"
SecWebSocketProtocol is the value of the Sec-WebSocket-Protocol header.
const UpdateInterval = 250 * time.Millisecond
UpdateInterval is the interval between client side upload measurements.
const UploadTimeout = 10 * time.Second
UploadTimeout is the time after which the upload must stop.
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.