Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Settings = viper.New()
Settings stores project settings such as download paths, host prefix for URLs and so on
Functions ¶
func IsProduction ¶
func IsProduction() bool
IsProduction is true if we are running in a production environment
func Override ¶
func Override(key string, value interface{})
Override sets a setting key value to whatever you supply. Useful in tests:
config.Override("Lbrynet", "http://www.google.com:8080/api/proxy")
defer config.RestoreOverridden()
...
func ProjectRoot ¶
func ProjectRoot() string
func RestoreOverridden ¶
func RestoreOverridden()
RestoreOverridden restores original settings values overridden by Override
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.