Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶ added in v0.6.3
func GetAddress() string
GetAddress determines address to bind http API server to
func GetInternalAPIHost ¶ added in v0.6.3
func GetInternalAPIHost() string
GetInternalAPIHost returns the address of internal-api server
func GetLbrynet ¶ added in v0.6.3
func GetLbrynet() string
GetLbrynet returns the address of SDK server to use
func GetSentryDSN ¶ added in v0.6.3
func GetSentryDSN() string
GetSentryDSN returns sentry.io service DSN
func IsAccountV1Enabled ¶ added in v0.6.3
func IsAccountV1Enabled() bool
IsAccountV1Enabled enables or disables Account Subsystem V1 (database + plain auth_token)
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 v values overridden by Override
Types ¶
type ConfigWrapper ¶ added in v0.6.4
type ConfigWrapper struct {
Viper *viper.Viper
ReadDone bool
// contains filtered or unexported fields
}
var Config *ConfigWrapper
func GetConfig ¶ added in v0.6.4
func GetConfig() *ConfigWrapper
func NewConfig ¶ added in v0.6.4
func NewConfig() *ConfigWrapper
func (*ConfigWrapper) Init ¶ added in v0.6.4
func (c *ConfigWrapper) Init()
func (*ConfigWrapper) Read ¶ added in v0.6.4
func (c *ConfigWrapper) Read()
Click to show internal directories.
Click to hide internal directories.