server

package
v0.0.0-...-fa1582b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestServer

func NewTestServer() (*httptest.Server, func(), error)

NewTestServer returns a test server for client testing - The URL attribute of the returned server can be passed to an http.Client. The returned function will close the server and remove the temporary file storage.

Types

type CoreServer

type CoreServer interface {
	ListenAndServe() error
	Shutdown(context.Context) error
}

func New

func New() (CoreServer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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