server

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MPL-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConfig = fmt.Errorf("server: valid config required")
)
View Source
var RoutingTable = router.RouteTable{
	templateRoutes,
	groupRoutes,
}

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	Addr string
	Bind string
	Port uint16

	http.Server
	// contains filtered or unexported fields
}

func New

func New(cfg config.HTTPServer, pool *pgx.ConnPool, nomad *nomad.Client) *HTTPServer

func (*HTTPServer) Start

func (srv *HTTPServer) Start()

func (*HTTPServer) Stop

func (srv *HTTPServer) Stop(ctx context.Context) error

Stop handles gracefully shutting down the server, finally forcing shutdown after 3 seconds.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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