server

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	storages model.ServerStorageCollection,
	services model.ServerServices,
	errs []error,
	restartChan chan<- bool,
) (model.Server, error)

NewServer creates backend service.

Types

type Server

type Server struct {
	MainRouter *web.Router
	// contains filtered or unexported fields
}

Server is a server.

func (*Server) Close

func (s *Server) Close()

Close closes all database connections.

func (*Server) Errors added in v2.3.3

func (s *Server) Errors() []error

func (*Server) Router

func (s *Server) Router() model.Router

Router returns server's main router.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Services

func (s *Server) Services() model.ServerServices

func (*Server) Settings

func (s *Server) Settings() model.ServerSettings

func (*Server) Storages

func (s *Server) Storages() model.ServerStorageCollection

func (*Server) UpdateCORS added in v2.3.11

func (s *Server) UpdateCORS()

Jump to

Keyboard shortcuts

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