Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ActiveNetParams = &mainNetParams
ActiveNetParams is a pointer to the parameters specific to the currently active bitcoin network.
var (
Log = backendLog.With().Str("app.unit", logUnitJXCD).Logger()
)
Loggers per subsystem. A single backend logger is created and all subsytem loggers created from it will write to the backend. When adding new subsystems, add the subsystem logger variable here and to the unitLogs map.
Loggers can not be used before the log rotator has been initialized with a log file. This must be performed early during application startup by calling initLogRotator.
var RunServiceCommand func(string) error
RunServiceCommand is only set to a real function on Windows. It is used to parse and execute service commands specified via the -s flag.
Functions ¶
func DoUpgrades ¶
DoUpgrades performs upgrades to jaxnetd as new versions require it.
func LoadConfig ¶
LoadConfig initializes and parses the config using a config file and command line options.
The configuration proceeds as follows:
- Start with a default config with sane settings
- Pre-parse the command line to check for an alternative config file
- Load configuration file overwriting defaults with any specified options
- Parse CLI options and overwrite/add any specified options
The above results in jaxnetd functioning properly without any config settings while still allowing the user to override settings with config files and command line options. Command line options always take precedence.
Types ¶
This section is empty.