config

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2019 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL