Documentation ¶
Index ¶
Constants ¶
View Source
const AppName = "pod"
Variables ¶
View Source
var F, E, W, I, D, T logg.LevelPrinter = logg.GetLogPrinterSet(subsystem)
Functions ¶
func ReadCAFile ¶
func Save ¶
Save saves the configuration to the configured location
note that this state change does not propagate configuration changes to other components of pod, except by restarting them. This is not quite concurrent safe and a configuration server/db would be better but this generally works as configs don't get changed often except by user actions
special handling code allows the use of the in-memory storage for the wallet lock password directly in the app. and once-per-run identifiers. This only applies in the GUI.
todo: maybe to not do this if gui is not the app?
Types ¶
type Config ¶
type Config struct { // sync.Mutex AddCheckpoints *cli.StringSlice `` /* 143-byte string literal not displayed */ AddPeers *cli.StringSlice `` /* 160-byte string literal not displayed */ AddrIndex *bool `` /* 218-byte string literal not displayed */ AutoPorts *bool `` /* 201-byte string literal not displayed */ AutoListen *bool `` /* 212-byte string literal not displayed */ BanDuration *time.Duration `` /* 157-byte string literal not displayed */ BanThreshold *int `` /* 163-byte string literal not displayed */ BlockMaxSize *int `` /* 182-byte string literal not displayed */ BlockMaxWeight *int `` /* 179-byte string literal not displayed */ BlockMinSize *int `` /* 182-byte string literal not displayed */ BlockMinWeight *int `` /* 179-byte string literal not displayed */ BlockPrioritySize *int `` /* 206-byte string literal not displayed */ BlocksOnly *bool `` /* 158-byte string literal not displayed */ CAFile *string `` /* 185-byte string literal not displayed */ // CAPI *bool `group:"" label:"Enable cAPI" description:"disable cAPI rpc" type:"" widget:"toggle" json:"CAPI,omitempty" hook:"restart"` CPUProfile *string `` /* 149-byte string literal not displayed */ ConfigFile *string `` /* 179-byte string literal not displayed */ ConnectPeers *cli.StringSlice `` /* 186-byte string literal not displayed */ Controller *bool `` /* 151-byte string literal not displayed */ // Controller *string `group:"node" label:"Controller Listener" description:"address to bind miner controller to" type:"address" widget:"string" json:"Controller,omitempty" hook:"controller"` // ControllerConnect *cli.StringSlice `group:"node" label:"Controller Connect" description:"address miner controller can be reached through to" type:"address" widget:"multi" json:"ControllerConnect,omitempty" hook:"controller"` DarkTheme *bool `` /* 137-byte string literal not displayed */ DataDir *string `` /* 158-byte string literal not displayed */ DbType *string `` /* 167-byte string literal not displayed */ DisableBanning *bool `` /* 160-byte string literal not displayed */ DisableCheckpoints *bool `` /* 155-byte string literal not displayed */ // DisableController *bool `group:"debug" label:"Disable Controller" description:"disables all mining and discovery services" type:"" widget:"toggle" json:"DisableController,omitempty" hook:"restart"` DisableDNSSeed *bool `` /* 160-byte string literal not displayed */ DisableListen *bool `` /* 177-byte string literal not displayed */ DisableRPC *bool `` /* 162-byte string literal not displayed */ Discovery *bool `` /* 142-byte string literal not displayed */ ExternalIPs *cli.StringSlice `` /* 180-byte string literal not displayed */ FreeTxRelayLimit *float64 `` /* 233-byte string literal not displayed */ GenThreads *int `` /* 150-byte string literal not displayed */ Generate *bool `` /* 143-byte string literal not displayed */ LAN *bool `` /* 179-byte string literal not displayed */ Language *string `` /* 152-byte string literal not displayed */ LimitPass *string `` /* 134-byte string literal not displayed */ LimitUser *string `` /* 128-byte string literal not displayed */ LogDir *string `` /* 146-byte string literal not displayed */ LogLevel *string `` /* 259-byte string literal not displayed */ MaxOrphanTxs *int `` /* 173-byte string literal not displayed */ MaxPeers *int `` /* 159-byte string literal not displayed */ MinRelayTxFee *float64 `` /* 192-byte string literal not displayed */ MinerPass *string `` /* 178-byte string literal not displayed */ MiningAddrs *cli.StringSlice `` /* 176-byte string literal not displayed */ Network *string `` /* 148-byte string literal not displayed */ NoCFilters *bool `` /* 154-byte string literal not displayed */ NoInitialLoad *bool `` /* 148-byte string literal not displayed */ NoPeerBloomFilters *bool `` /* 163-byte string literal not displayed */ NoRelayPriority *bool `` /* 205-byte string literal not displayed */ NodeOff *bool `` /* 131-byte string literal not displayed */ OneTimeTLSKey *bool `` /* 210-byte string literal not displayed */ Onion *bool `group:"proxy" label:"Onion" description:"enable tor proxy" type:"" widget:"toggle" json:"Onion,omitempty" hook:"restart"` OnionProxy *string `` /* 165-byte string literal not displayed */ OnionProxyPass *string `` /* 148-byte string literal not displayed */ OnionProxyUser *string `` /* 142-byte string literal not displayed */ P2PConnect *cli.StringSlice `` /* 171-byte string literal not displayed */ P2PListeners *cli.StringSlice `` /* 169-byte string literal not displayed */ Password *string `` /* 145-byte string literal not displayed */ PipeLog *bool `` /* 127-byte string literal not displayed */ Profile *string `` /* 152-byte string literal not displayed */ Proxy *string `` /* 162-byte string literal not displayed */ ProxyPass *string `` /* 142-byte string literal not displayed */ ProxyUser *string `` /* 139-byte string literal not displayed */ RPCCert *string `` /* 142-byte string literal not displayed */ RPCConnect *string `` /* 147-byte string literal not displayed */ RPCKey *string `` /* 132-byte string literal not displayed */ RPCListeners *cli.StringSlice `` /* 162-byte string literal not displayed */ RPCMaxClients *int `` /* 166-byte string literal not displayed */ RPCMaxConcurrentReqs *int `` /* 190-byte string literal not displayed */ RPCMaxWebsockets *int `` /* 175-byte string literal not displayed */ RPCQuirks *bool `` /* 161-byte string literal not displayed */ RejectNonStd *bool `` /* 209-byte string literal not displayed */ RelayNonStd *bool `` /* 206-byte string literal not displayed */ RunAsService *bool `` /* 129-byte string literal not displayed */ ServerPass *string `` /* 146-byte string literal not displayed */ ServerTLS *bool `` /* 169-byte string literal not displayed */ ServerUser *string `` /* 150-byte string literal not displayed */ SigCacheMaxSize *int `` /* 192-byte string literal not displayed */ Solo *bool `` /* 151-byte string literal not displayed */ TLS *bool `` /* 128-byte string literal not displayed */ TLSSkipVerify *bool `` /* 172-byte string literal not displayed */ TorIsolation *bool `` /* 172-byte string literal not displayed */ TrickleInterval *time.Duration `` /* 195-byte string literal not displayed */ TxIndex *bool `` /* 225-byte string literal not displayed */ UPNP *bool `` /* 130-byte string literal not displayed */ UserAgentComments *cli.StringSlice `` /* 191-byte string literal not displayed */ Username *string `` /* 143-byte string literal not displayed */ UUID *int `` /* 160-byte string literal not displayed */ Wallet *bool `` /* 144-byte string literal not displayed */ WalletFile *string `` /* 156-byte string literal not displayed */ WalletOff *bool `` /* 139-byte string literal not displayed */ WalletPass *string `` /* 194-byte string literal not displayed */ WalletRPCListeners *cli.StringSlice `` /* 183-byte string literal not displayed */ WalletRPCMaxClients *int `` /* 189-byte string literal not displayed */ WalletRPCMaxWebsockets *int `` /* 201-byte string literal not displayed */ WalletServer *string `` /* 167-byte string literal not displayed */ Whitelists *cli.StringSlice `` /* 157-byte string literal not displayed */ Hilite *cli.StringSlice `` /* 178-byte string literal not displayed */ LogFilter *cli.StringSlice `` /* 175-byte string literal not displayed */ }
Config is
func EmptyConfig ¶
Click to show internal directories.
Click to hide internal directories.