plain

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	ListenAndServe(ctx context.Context, addr string) error
	Addr() net.Addr
}

Server is the interface implemented by the non-HTTP-based NDT server. Because it isn't run by the http.Server machinery, it has its own interface.

func NewServer

func NewServer(datadir, wsAddr string) Server

NewServer creates a new TCP listener to serve the client. It forwards all connection requests that look like HTTP to a different address (assumed to be on the same host).

Jump to

Keyboard shortcuts

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