plain

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accepter added in v0.14.2

type Accepter interface {
	Accept(l net.Listener) (net.Conn, error)
}

Accepter defines an interface the listening server to decide whether to accept new connections.

type Server

type Server interface {
	ListenAndServe(ctx context.Context, addr string, tx Accepter) 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, metadata []metadata.NameValue) 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