server

package
v2.2.23 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 6 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, 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) 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

Jump to

Keyboard shortcuts

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