server

package
v0.0.0-...-8209e07 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2018 License: MIT Imports: 5 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 {
	Paths  pathfinder.PathService
	Logger log.Logger
	// contains filtered or unexported fields
}

Server holds the dependencies for a HTTP server.

func New

func New(ps pathfinder.PathService, logger log.Logger) *Server

New returns a new HTTP server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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