server

package
v0.0.0-...-8ae69cb Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: MPL-2.0 Imports: 26 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 {
	web.Server
	// contains filtered or unexported fields
}

Server holds the data necessary for the server.

func New

func New(address string) *Server

New creates a new server.

func (*Server) HandleShutdown

func (s *Server) HandleShutdown()

HandleShutdown is called during shutdown to save state.

func (*Server) ServeHTTP

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

ServeHTTP is the top-level handler for http requests.

Jump to

Keyboard shortcuts

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