server

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 12 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 {
	// contains filtered or unexported fields
}

Server represents a http server with router (ServeMux) and configuration.

func New

func New(conf config.Configuration, r *http.ServeMux) *Server

New returns a configured Server object.

func (*Server) Start

func (s *Server) Start()

Start runs ListenAndServe in a go routine and runs function shutdown which blocks.

Jump to

Keyboard shortcuts

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