legacy

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 Imports: 18 Imported by: 0

README

All code in this directory tree is related to the support of the legacy NDT protocol. We have many extant clients that use this protocol, and we don't want to leave them high and dry, but new clients are encouraged to use the services provided by the ndt7 subtree. The test is streamlined, the client is easier to write, and basically everything about it is better.

In this tree, we support existing clients, but we will be adding no new functionality.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicServer

type BasicServer struct {
	CertFile       string
	KeyFile        string
	ServerType     testresponder.ServerType
	ForwardingAddr string
	Labels         prometheus.Labels
}

BasicServer contains everything needed to start a new server on a random port.

func (*BasicServer) ListenAndServeRawAsync

func (s *BasicServer) ListenAndServeRawAsync(ctx context.Context, addr string) error

ListenAndServeRawAsync starts up the sniffing server that delegates to the appropriate just-TCP or WS protocol.Connection.

func (*BasicServer) ServeHTTP

func (s *BasicServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP is the command channel for the NDT-WS or NDT-WSS test. All subsequent client communication is synchronized with this method. Returning closes the websocket connection, so only occurs after all tests complete or an unrecoverable error. It is called ServeHTTP to make sure that the Server implements the http.Handler interface.

Directories

Path Synopsis
Package web100 provides web100 variables (or a simulation thereof) to interested systems.
Package web100 provides web100 variables (or a simulation thereof) to interested systems.

Jump to

Keyboard shortcuts

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