config

package
v2.2.20 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 NewServer

func NewServer(config model.ConfigurationStorage, restartChan chan<- bool) (model.Server, error)

NewServer creates new server instance from ServerSettings

func NewServerFromFlag

func NewServerFromFlag(configFlag string, restartChan chan<- bool) (model.Server, error)

Types

This section is empty.

Directories

Path Synopsis
storage
s3
watcher

Jump to

Keyboard shortcuts

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