responder

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 6 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 NewServers

func NewServers(address []string, 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