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 ¶
This section is empty.
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.
func (*Config) WriteConfig ¶
WriteConfig serializes the config struct and writes it to disk.
Click to show internal directories.
Click to hide internal directories.