server

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureServer added in v0.0.30

func ConfigureServer(s *http.Server, c config.Server) *http.Server

Types

type HTTPServer added in v0.0.30

type HTTPServer interface {
	ListenAndServe() error
	Shutdown(context.Context) error
}

type MultiServer added in v0.0.30

type MultiServer struct {
	// contains filtered or unexported fields
}

func New added in v0.0.30

func New(handler http.Handler, config []config.Server) *MultiServer

func (*MultiServer) ListenAndServe added in v0.0.30

func (s *MultiServer) ListenAndServe() error

func (*MultiServer) Shutdown added in v0.0.30

func (s *MultiServer) Shutdown(ctx context.Context) error

Jump to

Keyboard shortcuts

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