responder

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 8

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 wraps a minimal http server for the /hello endpoint

func NewServer added in v1.6.0

func NewServer(port int) *Server

NewServer creates a new server listening on the given port

func (*Server) Serve

func (s *Server) Serve() error

Serve http requests until shut down

func (*Server) Shutdown

func (s *Server) Shutdown() error

Shutdown server gracefully

Jump to

Keyboard shortcuts

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