Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CfgStore is a storage driver that configurations // can be read from and wrote to CfgStore store.Driver )
Functions ¶
func AddMissedKey ¶ added in v1.5.2
func AddMissedKey(cfg map[string]interface{})
AddMissedKey ... If the configure key is missing in the cfg map, add default value to it
func GetDatabaseFromCfg ¶
GetDatabaseFromCfg Create database object from config
func Init ¶
func Init() (err error)
Init system configurations. If env RESET is set or configurations read from storage driver is null, load all configurations from env
func LoadFromEnv ¶
LoadFromEnv loads the configurations from allEnvs, if all is false, it just loads the repeatLoadEnvs and the env which is absent in cfgs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.