Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommandImportWallet = "importwallet" CommandExportWallet = "exportwallet" CommandDumpBlockchain = "dumpblockchain" CommandRestoreBlockchain = "restoreblockchain" )
View Source
const Daemonprocesscommandline = "daemonnode"
other internal constant
View Source
const MinimumBlockBuildingTime = 3 // seconds
========================================================== Testing mode constants we need this for testing purposes. can be set to 0 on production system
View Source
const PidFileName = "server.pid"
File names
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllPossibleArgs ¶
type AllPossibleArgs struct { AppName string Address string From string To string Port int Host string NodePort int NodeHost string NodeAddress string DefaultAddresses string Genesis string Amount float64 LogDest string LogDestDefault bool // to know if logs destination was specified or not Transaction string View string Clean bool MySQLHost string MySQLPort int MySQLSocket string MySQLUser string MySQLPassword string MySQLDBName string DBTablesPrefix string DumpFile string DestinationFile string SQL string ConsensusFileToCopy string FilePath string AllowNonEmpty bool Trace bool }
Thi is the struct with all possible command line arguments
type AppInput ¶
type AppInput struct { Command string MinterAddress string ProxyKey string Logs string Port int LocalPort int Host string ConfigDir string Nodes []net.NodeAddr Args AllPossibleArgs Database database.DatabaseConfig DBProxyAddress string ConseususConfigFile string ConseususConfigFilePresent bool }
Input summary
func GetAppInput ¶
Parses input and config file. Command line arguments ovverride config file options
func GetAppInputFromDir ¶
func (AppInput) CheckConfigUpdateNeeded ¶
func (AppInput) CheckNeedsHelp ¶
func (AppInput) CommandNeedsConfig ¶
check if this commands really needs a config file
func (AppInput) PrintUsage ¶
func (c AppInput) PrintUsage()
func (AppInput) UpdateConfig ¶
Click to show internal directories.
Click to hide internal directories.