Versions in this module Expand all Collapse all v1 v1.10.3 Sep 25, 2024 Changes in this version + const Devnet + const Localnet + const Mainnet + const Pangaea + const Partner + const Stressnet + const Testnet + func GetPeerID() peer.ID + func GetVersion() string + func SetDefaultRole(r Role) + func SetNetworkType(networkType NetworkType) + func SetPeerID(pid peer.ID) + func SetVersion(ver string) + type BootNodeConfig struct + General GeneralConfig + HTTP HttpConfig + Log LogConfig + P2P P2pConfig + Pprof PprofConfig + RPCOpt RpcOptConfig + Sys *SysConfig + Version string + WS WsConfig + func (bnc BootNodeConfig) ToRPCServerConfig() nodeconfig.RPCServerConfig + type ConfigType struct + DNSZone string + DebugMode bool + IP string + NtpServer string + Port string + RPCServer RPCServerConfig + ShardID uint32 + TraceEnable bool + WebHooks struct{ ... } + func GetDefaultConfig() *ConfigType + func (conf *ConfigType) GetNetworkType() NetworkType + func (conf *ConfigType) GetShardID() uint32 + func (conf *ConfigType) Role() Role + func (conf *ConfigType) SetRole(r Role) + func (conf *ConfigType) SetShardID(s uint32) + func (conf *ConfigType) String() string + type GeneralConfig struct + NodeType string + ShardID int + TraceEnable bool + type HttpConfig struct + AuthPort int + Enabled bool + IP string + IdleTimeout string + Port int + ReadTimeout string + WriteTimeout string + type LogConfig struct + Console bool + Context *LogContext + FileName string + Folder string + RotateCount int + RotateMaxAge int + RotateSize int + VerbosePrints LogVerbosePrints + Verbosity int + type LogContext struct + IP string + Port int + type LogVerbosePrints struct + Config bool + func FlagSliceToLogVerbosePrints(verbosePrintsFlagSlice []string) LogVerbosePrints + type NetworkType string + func (n NetworkType) String() string + func (t NetworkType) ChainConfig() params.ChainConfig + type P2pConfig struct + ConnManagerHighWatermark int + ConnManagerLowWatermark int + DHTDataStore *string + DialTimeout time.Duration + DisablePrivateIPScan bool + DiscConcurrency int + IP string + KeyFile string + MaxConnsPerIP int + MaxPeers int64 + Muxer string + NAT bool + NoRelay bool + NoTransportSecurity bool + Port int + UserAgent string + WaitForEachPeerToConnect bool + type PprofConfig struct + Enabled bool + Folder string + ListenAddr string + ProfileDebugValues []int + ProfileIntervals []int + ProfileNames []string + type PrometheusConfig struct + EnablePush bool + Enabled bool + Gateway string + IP string + Port int + type RPCServerConfig struct + DebugEnabled bool + HTTPEnabled bool + HTTPIp string + HTTPPort int + HTTPTimeoutIdle time.Duration + HTTPTimeoutRead time.Duration + HTTPTimeoutWrite time.Duration + NetworkRPCsEnabled bool + RateLimiterEnabled bool + RequestsPerSecond int + RpcFilterFile string + WSEnabled bool + WSIp string + WSPort int + type Role byte + const BootNode + const Unknown + func (role Role) String() string + type RpcOptConfig struct + DebugEnabled bool + EthRPCsEnabled bool + LegacyRPCsEnabled bool + RateLimterEnabled bool + RequestsPerSecond int + RpcFilterFile string + type SysConfig struct + NtpServer string + type WsConfig struct + AuthPort int + Enabled bool + IP string + Port int