Documentation ¶
Index ¶
- func CheckConfigFileName(filename string) string
- func ConfigFilename() string
- func EntryCost(b []byte) (uint8, error)
- func GetChangeAcksHeight(filename string) (change uint32, err error)
- func GetConfigFilename(dir string) string
- func GetHomeDir() string
- func Trace(params ...string)
- type ByABlockIDAscending
- type ByByteArray
- type ByDBlockIDAscending
- type ByDirBlockInfoIDAscending
- type ByDirBlockInfoTimestamp
- type ByEBlockIDAscending
- type ByECBlockIDAscending
- type ByFBlockIDAscending
- type FactomdConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfigFileName ¶
func ConfigFilename ¶
func ConfigFilename() string
func GetChangeAcksHeight ¶
func GetConfigFilename ¶
func GetHomeDir ¶
func GetHomeDir() string
Types ¶
type ByABlockIDAscending ¶
type ByABlockIDAscending []IAdminBlock
------------------------------------------------ ABlock array sorting implementation - ascending
func (ByABlockIDAscending) Len ¶
func (f ByABlockIDAscending) Len() int
func (ByABlockIDAscending) Less ¶
func (f ByABlockIDAscending) Less(i, j int) bool
func (ByABlockIDAscending) Swap ¶
func (f ByABlockIDAscending) Swap(i, j int)
type ByByteArray ¶
type ByByteArray [][]byte
------------------------------------------------ Byte array sorting - ascending
func (ByByteArray) Len ¶
func (f ByByteArray) Len() int
func (ByByteArray) Less ¶
func (f ByByteArray) Less(i, j int) bool
func (ByByteArray) Swap ¶
func (f ByByteArray) Swap(i, j int)
type ByDBlockIDAscending ¶
type ByDBlockIDAscending []IDirectoryBlock
------------------------------------------------ DBlock array sorting implementation - ascending
func (ByDBlockIDAscending) Len ¶
func (f ByDBlockIDAscending) Len() int
func (ByDBlockIDAscending) Less ¶
func (f ByDBlockIDAscending) Less(i, j int) bool
func (ByDBlockIDAscending) Swap ¶
func (f ByDBlockIDAscending) Swap(i, j int)
type ByDirBlockInfoIDAscending ¶
type ByDirBlockInfoIDAscending []IDirBlockInfo
------------------------------------------------ DirBlock Info array sorting implementation - ascending
func (ByDirBlockInfoIDAscending) Len ¶
func (f ByDirBlockInfoIDAscending) Len() int
func (ByDirBlockInfoIDAscending) Less ¶
func (f ByDirBlockInfoIDAscending) Less(i, j int) bool
func (ByDirBlockInfoIDAscending) Swap ¶
func (f ByDirBlockInfoIDAscending) Swap(i, j int)
type ByDirBlockInfoTimestamp ¶
type ByDirBlockInfoTimestamp []IDirBlockInfo
ByDirBlockInfoTimestamp defines the methods needed to satisify sort.Interface to sort a slice of DirBlockInfo by their Timestamp.
func (ByDirBlockInfoTimestamp) Len ¶
func (u ByDirBlockInfoTimestamp) Len() int
func (ByDirBlockInfoTimestamp) Less ¶
func (u ByDirBlockInfoTimestamp) Less(i, j int) bool
func (ByDirBlockInfoTimestamp) Swap ¶
func (u ByDirBlockInfoTimestamp) Swap(i, j int)
type ByEBlockIDAscending ¶
type ByEBlockIDAscending []IEntryBlock
------------------------------------------------ EBlock array sorting implementation - ascending
func (ByEBlockIDAscending) Len ¶
func (f ByEBlockIDAscending) Len() int
func (ByEBlockIDAscending) Less ¶
func (f ByEBlockIDAscending) Less(i, j int) bool
func (ByEBlockIDAscending) Swap ¶
func (f ByEBlockIDAscending) Swap(i, j int)
type ByECBlockIDAscending ¶
type ByECBlockIDAscending []IEntryCreditBlock
------------------------------------------------ CBlock array sorting implementation - ascending
func (ByECBlockIDAscending) Len ¶
func (f ByECBlockIDAscending) Len() int
func (ByECBlockIDAscending) Less ¶
func (f ByECBlockIDAscending) Less(i, j int) bool
func (ByECBlockIDAscending) Swap ¶
func (f ByECBlockIDAscending) Swap(i, j int)
type ByFBlockIDAscending ¶
type ByFBlockIDAscending []IFBlock
------------------------------------------------ ABlock array sorting implementation - ascending
func (ByFBlockIDAscending) Len ¶
func (f ByFBlockIDAscending) Len() int
func (ByFBlockIDAscending) Less ¶
func (f ByFBlockIDAscending) Less(i, j int) bool
func (ByFBlockIDAscending) Swap ¶
func (f ByFBlockIDAscending) Swap(i, j int)
type FactomdConfig ¶
type FactomdConfig struct { App struct { PortNumber int HomeDir string ControlPanelPort int ControlPanelFilesPath string ControlPanelSetting string DBType string LdbPath string BoltDBPath string DataStorePath string DirectoryBlockInSeconds int ExportData bool ExportDataSubpath string FastBoot bool FastBootLocation string NodeMode string IdentityChainID string LocalServerPrivKey string LocalServerPublicKey string ExchangeRate uint64 ExchangeRateChainId string ExchangeRateAuthorityPublicKey string ExchangeRateAuthorityPublicKeyMainNet string ExchangeRateAuthorityPublicKeyTestNet string ExchangeRateAuthorityPublicKeyLocalNet string // Network Configuration Network string MainNetworkPort string PeersFile string MainSeedURL string MainSpecialPeers string TestNetworkPort string TestSeedURL string TestSpecialPeers string LocalNetworkPort string LocalSeedURL string LocalSpecialPeers string CustomNetworkPort string CustomSeedURL string CustomSpecialPeers string CustomBootstrapIdentity string CustomBootstrapKey string FactomdTlsEnabled bool FactomdTlsPrivateKey string FactomdTlsPublicCert string FactomdRpcUser string FactomdRpcPass string CorsDomains string ChangeAcksHeight uint32 } Peer struct { AddPeers []string `short:"a" long:"addpeer" description:"Add a peer to connect with at startup"` ConnectPeers []string `long:"connect" description:"Connect only to the specified peers at startup"` Listeners []string `` /* 127-byte string literal not displayed */ MaxPeers int `long:"maxpeers" description:"Max number of inbound and outbound peers"` BanDuration time.Duration `long:"banduration" description:"How long to ban misbehaving peers. Valid time units are {s, m, h}. Minimum 1 second"` TestNet bool `long:"testnet" description:"Use the test network"` SimNet bool `long:"simnet" description:"Use the simulation test network"` } Log struct { LogPath string LogLevel string ConsoleLogLevel string } Wallet struct { Address string Port int DataFile string RefreshInSeconds string BoltDBPath string FactomdAddress string FactomdPort int } Walletd struct { WalletRpcUser string WalletRpcPass string WalletTlsEnabled bool WalletTlsPrivateKey string WalletTlsPublicCert string FactomdLocation string WalletdLocation string WalletEncrypted bool } }
func ReadConfig ¶
func ReadConfig(filename string) *FactomdConfig
func (*FactomdConfig) String ¶
func (s *FactomdConfig) String() string