httpserver

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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 HttpServer

type HttpServer struct {
	Host      string
	Ports     []string
	Handler   http.Handler
	Listeners map[string]*http.Server
	ErrorLog  *log.Logger
	InfoLog   *log.Logger
}

func Create

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

func (*HttpServer) ListenAndServer

func (server *HttpServer) ListenAndServer()

func (*HttpServer) Shutdown

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

Jump to

Keyboard shortcuts

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