server

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServeMux added in v3.1.0

func NewServeMux(apiPath, sysPath string, service *handlers.Service) *http.ServeMux

Types

type HTTPServer

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

HTTPServer is the backup service HTTP server wrapper.

func NewHTTPServer

func NewHTTPServer(serverConfig *model.HTTPServerConfig, service *handlers.Service, logger *slog.Logger) *HTTPServer

NewHTTPServer returns a new instance of HTTPServer.

func (*HTTPServer) Shutdown

func (s *HTTPServer) Shutdown() error

Shutdown shutdowns the HTTP server.

func (*HTTPServer) Start

func (s *HTTPServer) Start()

Start starts the HTTP server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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