handler

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 12 Imported by: 1

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, metadata []metadata.NameValue) WSHandler

NewWS returns a handler suitable for http-based connections.

func NewWSS

func NewWSS(datadir, certFile, keyFile string, metadata []metadata.NameValue) 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