httpserver

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

HTTPServer encapsulates an http.Server.

func NewHTTPServer

func NewHTTPServer(port *int, handler *http.Handler) *HTTPServer

NewHTTPServer creates a new HTTPServer instance.

func (*HTTPServer) Shutdown

func (h *HTTPServer) Shutdown(timeout time.Duration)

Shutdown HTTPServer

func (*HTTPServer) Start

func (h *HTTPServer) Start()

Start HTTPServer

Jump to

Keyboard shortcuts

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