Documentation
¶
Index ¶
- func NewStore(config *config.Configuration, logger mlog.LoggerIFace) (store.Store, error)
- type ErrServerParam
- type Params
- type Server
- func (s *Server) App() *app.App
- func (s *Server) Config() *config.Configuration
- func (s *Server) GetRootRouter() *mux.Router
- func (s *Server) Logger() mlog.LoggerIFace
- func (s *Server) Shutdown() error
- func (s *Server) Start() error
- func (s *Server) Store() store.Store
- func (s *Server) UpdateAppConfig()
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 ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) Config ¶
func (s *Server) Config() *config.Configuration
func (*Server) GetRootRouter ¶
func (*Server) Logger ¶
func (s *Server) Logger() mlog.LoggerIFace
func (*Server) UpdateAppConfig ¶
func (s *Server) UpdateAppConfig()
Click to show internal directories.
Click to hide internal directories.