Documentation
¶
Overview ¶
Package config contains the definition of the application config structure and logic required to load and update it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateConfig ¶ added in v0.0.19
UpdateConfig locks the config file, reads from disk, applies the changes from the anonymous function, writes to disk and unlocks the file.
Types ¶
type Clients ¶
type Clients struct { AutoDiscovery bool `yaml:"auto_discovery"` RegisteredClients []string `yaml:"registered_clients"` }
Clients contains settings for client configuration.
type Config ¶
Config represents the configuration of the application.
func GetConfig ¶
func GetConfig() *Config
GetConfig is a Singleton that returns the application configuration.
func LoadOrCreateConfig ¶
LoadOrCreateConfig fetches the application configuration. If it does not already exist - it will create a new config file with default values.
Click to show internal directories.
Click to hide internal directories.