config

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: ISC Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHomeDir string
View Source
var Param *param.Param

Functions

func LoadParam

func LoadParam(private private.IPrivate) error

LoadConfig load the parse node startup parameter

Types

type Config

type Config struct {
	ConfigFile string `long:"config" description:"Start with a configuration file"`
	Data       string `long:"data" description:"Path to application data directory"`
	Logging    bool   `long:"logging" description:"Logging switch"`
	ExternalIp string `long:"externalip" description:"External network IP address"`
	Boot       string `long:"boot" description:"Custom boot"`
	P2PPort    string `long:"p2pport" description:"Add an interface/port to listen for connections"`
	RpcPort    string `long:"rpcport" description:"Add an interface/port to listen for RPC connections"`
	RpcTLS     bool   `long:"rpctls" description:"Open TLS for the RPC server -- NOTE: This is only allowed if the RPC server is bound to localhost"`
	RpcCert    string `long:"rpccert" description:"File containing the certificate file"`
	RpcKey     string `long:"rpckey" description:"File containing the certificate key"`
	RpcPass    string `long:"rpcpass" description:"Password for RPC connections"`
	TestNet    bool   `long:"testnet" description:"Use the test network"`
	KeyFile    string `long:"keyfile" description:"If you participate in mining, you need to configure the mining address key file"`
	KeyPass    string `long:"keypass" description:"The decryption password for key file"`
	RollBack   uint64 `long:"rollback" description:"Roll back to the previous height"`
	Version    bool   `long:"version" description:"View Version number"`
	Private    private.IPrivate
}

Config is the node startup parameter

type RpcConfig

type RpcConfig struct {
	DataDir    string
	RpcIp      string
	RpcPort    string
	RpcTLS     bool
	RpcCert    string
	RpcCertKey string
	RpcPass    string
}

Jump to

Keyboard shortcuts

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