server

package
v0.0.0-...-dc2b481 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRouter

func NewRouter(apiPath, sysPath string, h *handlers.Service, middlewares ...mux.MiddlewareFunc) *mux.Router

Types

type HTTPServer

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

HTTPServer is the backup service HTTP server wrapper.

func NewHTTPServer

func NewHTTPServer(
	config *model.Config,
	scheduler quartz.Scheduler,
	backends service.BackendsHolder,
	handlerHolder service.BackupHandlerHolder,
	configurationManager service.ConfigurationManager,
	clientManger service.ClientManager,
	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