server

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTTPHandler added in v0.0.32

func GetHTTPHandler(options *cors.Options, h http.Handler) (http.Handler, error)

GetHTTPHandler returns a handler compatible with net/http

func RunHTTPServer

func RunHTTPServer(bindAddress string, h http.Handler) *http.Server

RunHTTPServer launches http server The code is directly based off recommendations at: https://github.com/gorilla/mux , that is originally distributed under BSD 3-Clause revised license

func WaitForInterrupt added in v0.0.31

func WaitForInterrupt(wait time.Duration) (context.Context, context.CancelFunc)

WaitForInterrupt waits for a particular time before shutting down

Types

This section is empty.

Jump to

Keyboard shortcuts

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