Documentation ¶
Index ¶
- func DefaultStorage() (model.ConfigurationStorage, error)
- func ImportApps(filename string, storage model.AppStorage) error
- func ImportUsers(filename string, storage model.UserStorage) error
- func InitConfigurationStorage(config model.ConfigStorageSettings) (model.ConfigurationStorage, error)
- func InitConfigurationStorageFromFlag(configFlag string) (model.ConfigurationStorage, error)
- func NewConfigWatcher(settings model.ConfigStorageSettings) (model.ConfigurationWatcher, error)
- func NewServer(config model.ConfigurationStorage, restartChan chan<- bool) (model.Server, error)
- func NewServerFromFlag(configFlag string, restartChan chan<- bool) (model.Server, error)
- func NewTokenService(settings model.GeneralServerSettings, storages model.ServerStorageCollection) (model.TokenService, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultStorage ¶
func DefaultStorage() (model.ConfigurationStorage, error)
DefaultStorage trying to create a default storage with default file
func ImportApps ¶
func ImportApps(filename string, storage model.AppStorage) error
ImportApps imports apps from file.
func ImportUsers ¶
func ImportUsers(filename string, storage model.UserStorage) error
ImportUsers imports users from file.
func InitConfigurationStorage ¶
func InitConfigurationStorage(config model.ConfigStorageSettings) (model.ConfigurationStorage, error)
InitConfigurationStorage initializes configuration storage.
func InitConfigurationStorageFromFlag ¶
func InitConfigurationStorageFromFlag(configFlag string) (model.ConfigurationStorage, error)
func NewConfigWatcher ¶
func NewConfigWatcher(settings model.ConfigStorageSettings) (model.ConfigurationWatcher, error)
func NewServerFromFlag ¶
func NewTokenService ¶
func NewTokenService(settings model.GeneralServerSettings, storages model.ServerStorageCollection) (model.TokenService, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.