Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindPFlag ¶
BindPFlag binds a specific key to a pflag (as used by cobra). Example (where serverCmd is a Cobra instance):
serverCmd.Flags().Int("port", 1138, "Port to run Application server on") Viper.BindPFlag("port", serverCmd.Flags().Lookup("port"))
func SetDefault ¶
SetDefault sets the default value for this key. SetDefault is case-insensitive for a key. Default only used when no value is provided by the user via flag, config or ENV.
Types ¶
type BitcoinNodeClient ¶
type Config ¶
type Config struct { EnableModules []string `mapstructure:"enable_modules"` APIOnly bool `mapstructure:"api_only"` Logger logger.Config `mapstructure:"logger"` BitcoinNode BitcoinNodeClient `mapstructure:"bitcoin_node"` Network common.Network `mapstructure:"network"` HTTPServer HTTPServerConfig `mapstructure:"http_server"` Modules Modules `mapstructure:"modules"` Reporting reportingclient.Config `mapstructure:"reporting"` }
type HTTPServerConfig ¶
type HTTPServerConfig struct { Port int `mapstructure:"port"` Logger requestlogger.Config `mapstructure:"logger"` RequestIP requestcontext.WithClientIPConfig `mapstructure:"requestip"` }
type Modules ¶
type Modules struct { Runes runesconfig.Config `mapstructure:"runes"` NodeSale nodesaleconfig.Config `mapstructure:"nodesale"` }
Click to show internal directories.
Click to hide internal directories.