Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveNetParams ¶
ActiveNetParams returns the currently active net params
Types ¶
type Config ¶
type Config struct { LogDir string `long:"logdir" description:"Directory to log output."` RPCUser string `short:"u" long:"rpcuser" description:"RPC username"` RPCPassword string `short:"P" long:"rpcpass" default-mask:"-" description:"RPC password"` RPCServer string `short:"s" long:"rpcserver" description:"RPC server to connect to"` RPCCert string `short:"c" long:"rpccert" description:"RPC server certificate chain for validation"` DisableTLS bool `long:"notls" description:"Disable TLS"` DBAddress string `long:"dbaddress" description:"Database address"` DBUser string `long:"dbuser" description:"Database user" required:"true"` DBPassword string `long:"dbpass" description:"Database password" required:"true"` DBName string `long:"dbname" description:"Database name" required:"true"` HTTPListen string `long:"listen" description:"HTTP address to listen on (default: 0.0.0.0:8080)"` Migrate bool `long:"migrate" description:"Migrate the database to the latest version. The server will not start when using this flag."` TestNet bool `long:"testnet" description:"Connect to testnet"` SimNet bool `long:"simnet" description:"Connect to the simulation test network"` DevNet bool `long:"devnet" description:"Connect to the development test network"` }
Config defines the configuration options for the API server.
Click to show internal directories.
Click to hide internal directories.