testserver

package
v9.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHttpServer

func StartHttpServer(handlers []TestRequestHandler) (func(), string, error)

func StartHttpsServer

func StartHttpsServer(handlers []TestRequestHandler) (func(), string, error)

func StartSocketHttpServer

func StartSocketHttpServer(handlers []TestRequestHandler) (func(), string, error)

Types

type TestRequestHandler

type TestRequestHandler struct {
	Path    string
	Handler func(w http.ResponseWriter, r *http.Request)
}

Jump to

Keyboard shortcuts

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