server

package
v0.0.0-...-bc2f39f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Router *chi.Mux

	Shutdown chan bool

	Addr string
	// contains filtered or unexported fields
}

Server contains the settings for the server

func New

func New(
	log log.Interface,
	healthChecks health.Checks,
	port int,
	onClose func(),
) *Server

Create creates a new server based on a list of services

func (*Server) Start

func (s *Server) Start()

Start a server

Jump to

Keyboard shortcuts

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