Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearLogConfigInstance ¶
func ClearLogConfigInstance()
ClearLogConfigInstance removes the existing configuration. Then the log configuration can be re-initialized.
func GetLogConfigPath ¶
GetLogConfigPath returns the file location of the log-config path
Types ¶
type Config ¶
type Config struct {
CommonController commoncontroller
}
Config represents the adapter configuration. It is created directly from the configuration toml file.
func ReadConfigs ¶
func ReadConfigs() *Config
ReadConfigs implements adapter configuration read operation. The read operation will happen only once, hence the consistancy is ensured.
If the "APK_HOME" variable is set, the configuration file location would be picked relative to the variable's value ("/conf/config.toml"). otherwise, the "APK_HOME" variable would be set to the directory from where the executable is called from.
Returns the configuration object that is initialized with default values. Changes to the default configuration object is achieved through the configuration file.