handler

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WSHandler

type WSHandler interface {
	ndt.Server
	http.Handler
}

WSHandler is both an ndt.Server and an http.Handler to allow websocket-based NDT tests to be run by Go's http libraries.

func NewWS

func NewWS(datadir string) WSHandler

NewWS returns a handler suitable for http-based connections.

func NewWSS

func NewWSS(datadir, certFile, keyFile string) WSHandler

NewWSS returns a handler suitable for https-based connections.

Jump to

Keyboard shortcuts

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