Documentation
¶
Index ¶
Constants ¶
View Source
const ( Debug = "Debug" ListenPort = "ListenPort" ListenHost = "ListenHost" TemplatesPath = "TemplatesPath" StaticURL = "StaticUrl" StaticPath = "StaticPath" DisableLogs = "DisableLogs" LogLevel = "LogLevel" SettingsPath = "Settings" // on env var MONF_SETTINGS )
Configuration names
Variables ¶
View Source
var SpecificConfigPath = ""
SpecificConfigPath will be the global var to track the custom config file
Functions ¶
func ConfigureLogs ¶
func ConfigureLogs()
ConfigureLogs configure the logging system based on teh log settings
func LoadAppDefaultSettings ¶
func LoadAppDefaultSettings()
LoadAppDefaultSettings loads the default settings
func LoadDefaultFilePathSettings ¶
func LoadDefaultFilePathSettings()
LoadDefaultFilePathSettings Sets the configuration default file paths
func LoadFromFileSettings ¶
func LoadFromFileSettings(path string)
LoadFromFileSettings loads the settings from an specified path
func LoadSettings ¶
func LoadSettings(path string)
LoadSettings Load all the app settings If specific path then don't look at the env var, nor default places
func OverrideSettings ¶
func OverrideSettings(settings map[string]interface{})
OverrideSettings overrides the passed ones, useful for tests
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.