server

package
v0.1.0-a6 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileServer

func FileServer(r chi.Router, path string, root http.FileSystem)

FileServer router

func Run

func Run()

Run the server

Types

type Server

type Server struct {
	http.Server
}

Server structure

func (*Server) WaitShutdown

func (srv *Server) WaitShutdown(logger *clog.Logger)

WaitShutdown to avoid a brutal shutdown

Jump to

Keyboard shortcuts

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