http

package
v0.0.0-...-466853b Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(r lobby.Registry, logger *log.Logger) http.Handler

NewHandler instantiates a configured Handler.

func NewServer

func NewServer(handler http.Handler) lobby.Server

NewServer returns an http lobby server.

Types

type Server

type Server struct {
	*http.Server
}

Server wraps an HTTP server.

func (*Server) Name

func (s *Server) Name() string

Name of the server.

func (*Server) Serve

func (s *Server) Serve(l net.Listener) error

Serve incoming requests.

func (*Server) Stop

func (s *Server) Stop() error

Stop gracefully stops the server.

Jump to

Keyboard shortcuts

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