Documentation
¶
Overview ¶
Package config provides the application configuration management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationService ¶
type ConfigurationService struct {
Configuration model.Configuration
}
ConfigurationService represents the service that manages the configuration of the application.
func GetConfigurationServiceInstance ¶
func GetConfigurationServiceInstance() *ConfigurationService
GetConfigurationServiceInstance returns the only one instance of the service.
If the service doesn't exist, it is automatically created once for all.
func (*ConfigurationService) Init ¶
func (confService *ConfigurationService) Init(filePath string) (*model.Configuration, error)
Init initializes the service using a path to the configuration file. Once done, the service is ready to return the configuration structure.
Note that the conf file content is checked, and default values are used if needed.
Click to show internal directories.
Click to hide internal directories.