server

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PortsToRangeString

func PortsToRangeString(ports []string) string

Types

type Server

type Server struct {
	Host      string
	Ports     []string
	Handler   http.Handler
	Listeners map[string]*http.Server
}

func Create

func Create(handler http.Handler, host string, ports ...string) *Server

func (*Server) ListenAndServer

func (server *Server) ListenAndServer()

func (*Server) Shutdown

func (server *Server) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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