testserver

package
v9.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGitalyServer

func StartGitalyServer(t *testing.T) (string, func())

func StartHttpServer

func StartHttpServer(t *testing.T, handlers []TestRequestHandler) (string, func())

func StartHttpsServer

func StartHttpsServer(t *testing.T, handlers []TestRequestHandler) (string, func())

func StartSocketHttpServer

func StartSocketHttpServer(t *testing.T, handlers []TestRequestHandler) (string, func())

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