server

package
v0.0.0-...-b5220b9 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: AGPL-3.0, Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStore

func NewStore(config *config.Configuration, logger mlog.LoggerIFace) (store.Store, error)

Types

type ErrServerParam

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

func (ErrServerParam) Error

func (e ErrServerParam) Error() string

type Params

type Params struct {
	Cfg                *config.Configuration
	SingleUserToken    string
	DBStore            store.Store
	Logger             mlog.LoggerIFace
	ServerID           string
	WSAdapter          ws.Adapter
	NotifyBackends     []notify.Backend
	PermissionsService permissions.PermissionsService
	ServicesAPI        model.ServicesAPI
	IsPlugin           bool
}

func (Params) CheckValid

func (p Params) CheckValid() error

type Server

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

func New

func New(params Params) (*Server, error)

func (*Server) App

func (s *Server) App() *app.App

func (*Server) Config

func (s *Server) Config() *config.Configuration

func (*Server) GetRootRouter

func (s *Server) GetRootRouter() *mux.Router

func (*Server) Logger

func (s *Server) Logger() mlog.LoggerIFace

func (*Server) Shutdown

func (s *Server) Shutdown() error

func (*Server) Start

func (s *Server) Start() error

func (*Server) Store

func (s *Server) Store() store.Store

func (*Server) UpdateAppConfig

func (s *Server) UpdateAppConfig()

Jump to

Keyboard shortcuts

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