server

package
v0.0.0-...-90f3be2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 16 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 {
	*config.Config
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config, translator *xlat.Translator) *Server

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

TODO: ListenAndServe should accept a context for shutdown

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context)

Jump to

Keyboard shortcuts

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