Documentation ¶
Index ¶
- Variables
- type AppConfig
- func (*AppConfig) Descriptor() ([]byte, []int)
- func (m *AppConfig) GetLogAge() uint32
- func (m *AppConfig) GetLogFile() string
- func (m *AppConfig) GetLogLevel() string
- func (m *AppConfig) GetPprof() *PprofConfig
- func (m *AppConfig) GetVersion() string
- func (*AppConfig) ProtoMessage()
- func (m *AppConfig) Reset()
- func (m *AppConfig) String() string
- func (m *AppConfig) XXX_DiscardUnknown()
- func (m *AppConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *AppConfig) XXX_Merge(src proto.Message)
- func (m *AppConfig) XXX_Size() int
- func (m *AppConfig) XXX_Unmarshal(b []byte) error
- type ChainConfig
- func (*ChainConfig) Descriptor() ([]byte, []int)
- func (m *ChainConfig) GetBlockCacheSize() uint32
- func (m *ChainConfig) GetBlockPoolSize() uint32
- func (m *ChainConfig) GetGenesis() string
- func (m *ChainConfig) GetKeydir() string
- func (m *ChainConfig) GetProposers() []*ProposerConfig
- func (m *ChainConfig) GetSignatureCiphers() []string
- func (m *ChainConfig) GetStartMine() bool
- func (m *ChainConfig) GetTailCacheSize() uint32
- func (m *ChainConfig) GetTransactionPoolSize() uint32
- func (*ChainConfig) ProtoMessage()
- func (m *ChainConfig) Reset()
- func (m *ChainConfig) String() string
- func (m *ChainConfig) XXX_DiscardUnknown()
- func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ChainConfig) XXX_Merge(src proto.Message)
- func (m *ChainConfig) XXX_Size() int
- func (m *ChainConfig) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetApp() *AppConfig
- func (m *Config) GetChain() *ChainConfig
- func (m *Config) GetGlobal() *GlobalConfig
- func (m *Config) GetMisc() *MiscConfig
- func (m *Config) GetNetwork() *NetworkConfig
- func (m *Config) GetRpc() *RPCConfig
- func (m *Config) GetStats() *StatsConfig
- func (m *Config) GetSync() *SyncConfig
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) String() string
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type GlobalConfig
- func (*GlobalConfig) Descriptor() ([]byte, []int)
- func (m *GlobalConfig) GetChainId() uint32
- func (m *GlobalConfig) GetCryptoAlg() uint32
- func (m *GlobalConfig) GetDatadir() string
- func (m *GlobalConfig) GetHashAlg() uint32
- func (*GlobalConfig) ProtoMessage()
- func (m *GlobalConfig) Reset()
- func (m *GlobalConfig) String() string
- func (m *GlobalConfig) XXX_DiscardUnknown()
- func (m *GlobalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *GlobalConfig) XXX_Merge(src proto.Message)
- func (m *GlobalConfig) XXX_Size() int
- func (m *GlobalConfig) XXX_Unmarshal(b []byte) error
- type InfluxdbConfig
- func (*InfluxdbConfig) Descriptor() ([]byte, []int)
- func (m *InfluxdbConfig) GetDb() string
- func (m *InfluxdbConfig) GetHost() string
- func (m *InfluxdbConfig) GetPassword() string
- func (m *InfluxdbConfig) GetPort() uint32
- func (m *InfluxdbConfig) GetUser() string
- func (*InfluxdbConfig) ProtoMessage()
- func (m *InfluxdbConfig) Reset()
- func (m *InfluxdbConfig) String() string
- func (m *InfluxdbConfig) XXX_DiscardUnknown()
- func (m *InfluxdbConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *InfluxdbConfig) XXX_Merge(src proto.Message)
- func (m *InfluxdbConfig) XXX_Size() int
- func (m *InfluxdbConfig) XXX_Unmarshal(b []byte) error
- type MiscConfig
- func (*MiscConfig) Descriptor() ([]byte, []int)
- func (m *MiscConfig) GetDefaultKeystoreFileCiper() string
- func (*MiscConfig) ProtoMessage()
- func (m *MiscConfig) Reset()
- func (m *MiscConfig) String() string
- func (m *MiscConfig) XXX_DiscardUnknown()
- func (m *MiscConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MiscConfig) XXX_Merge(src proto.Message)
- func (m *MiscConfig) XXX_Size() int
- func (m *MiscConfig) XXX_Unmarshal(b []byte) error
- type NetworkConfig
- func (*NetworkConfig) Descriptor() ([]byte, []int)
- func (m *NetworkConfig) GetBootstrapPeriod() uint32
- func (m *NetworkConfig) GetCacheFile() string
- func (m *NetworkConfig) GetCachePeriod() uint32
- func (m *NetworkConfig) GetConnMgrGracePeriod() uint32
- func (m *NetworkConfig) GetConnMgrHighWaterMark() uint32
- func (m *NetworkConfig) GetConnMgrLowWaterMark() uint32
- func (m *NetworkConfig) GetListens() []string
- func (m *NetworkConfig) GetMaxReadConcurrency() uint32
- func (m *NetworkConfig) GetMaxWriteConcurrency() uint32
- func (m *NetworkConfig) GetMinimumConnections() uint32
- func (m *NetworkConfig) GetNetworkKeyFile() string
- func (m *NetworkConfig) GetSeeds() []*pb.PeerInfo
- func (*NetworkConfig) ProtoMessage()
- func (m *NetworkConfig) Reset()
- func (m *NetworkConfig) String() string
- func (m *NetworkConfig) XXX_DiscardUnknown()
- func (m *NetworkConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NetworkConfig) XXX_Merge(src proto.Message)
- func (m *NetworkConfig) XXX_Size() int
- func (m *NetworkConfig) XXX_Unmarshal(b []byte) error
- type PprofConfig
- func (*PprofConfig) Descriptor() ([]byte, []int)
- func (m *PprofConfig) GetCpuprofile() string
- func (m *PprofConfig) GetHttpListen() string
- func (m *PprofConfig) GetMemprofile() string
- func (*PprofConfig) ProtoMessage()
- func (m *PprofConfig) Reset()
- func (m *PprofConfig) String() string
- func (m *PprofConfig) XXX_DiscardUnknown()
- func (m *PprofConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *PprofConfig) XXX_Merge(src proto.Message)
- func (m *PprofConfig) XXX_Size() int
- func (m *PprofConfig) XXX_Unmarshal(b []byte) error
- type ProposerConfig
- func (*ProposerConfig) Descriptor() ([]byte, []int)
- func (m *ProposerConfig) GetCoinbase() string
- func (m *ProposerConfig) GetKeydir() string
- func (m *ProposerConfig) GetPassphrase() string
- func (m *ProposerConfig) GetPrivkey() string
- func (m *ProposerConfig) GetProposer() string
- func (*ProposerConfig) ProtoMessage()
- func (m *ProposerConfig) Reset()
- func (m *ProposerConfig) String() string
- func (m *ProposerConfig) XXX_DiscardUnknown()
- func (m *ProposerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ProposerConfig) XXX_Merge(src proto.Message)
- func (m *ProposerConfig) XXX_Size() int
- func (m *ProposerConfig) XXX_Unmarshal(b []byte) error
- type RPCConfig
- func (*RPCConfig) Descriptor() ([]byte, []int)
- func (m *RPCConfig) GetConnectionLimits() int32
- func (m *RPCConfig) GetHttpListen() []string
- func (m *RPCConfig) GetHttpModule() []string
- func (m *RPCConfig) GetRpcListen() []string
- func (*RPCConfig) ProtoMessage()
- func (m *RPCConfig) Reset()
- func (m *RPCConfig) String() string
- func (m *RPCConfig) XXX_DiscardUnknown()
- func (m *RPCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *RPCConfig) XXX_Merge(src proto.Message)
- func (m *RPCConfig) XXX_Size() int
- func (m *RPCConfig) XXX_Unmarshal(b []byte) error
- type StatsConfig
- func (*StatsConfig) Descriptor() ([]byte, []int)
- func (m *StatsConfig) GetEnableMetrics() bool
- func (m *StatsConfig) GetInfluxdb() *InfluxdbConfig
- func (m *StatsConfig) GetMetricsTags() []string
- func (m *StatsConfig) GetReportingModule() []StatsConfig_ReportingModule
- func (*StatsConfig) ProtoMessage()
- func (m *StatsConfig) Reset()
- func (m *StatsConfig) String() string
- func (m *StatsConfig) XXX_DiscardUnknown()
- func (m *StatsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StatsConfig) XXX_Merge(src proto.Message)
- func (m *StatsConfig) XXX_Size() int
- func (m *StatsConfig) XXX_Unmarshal(b []byte) error
- type StatsConfig_ReportingModule
- type SyncConfig
- func (*SyncConfig) Descriptor() ([]byte, []int)
- func (m *SyncConfig) GetActiveDownloadLimit() uint32
- func (m *SyncConfig) GetNumberOfRetries() uint32
- func (m *SyncConfig) GetResponseTimeLimit() uint32
- func (m *SyncConfig) GetSyncActivationHeight() uint64
- func (m *SyncConfig) GetSyncActivationLibGap() uint64
- func (*SyncConfig) ProtoMessage()
- func (m *SyncConfig) Reset()
- func (m *SyncConfig) String() string
- func (m *SyncConfig) XXX_DiscardUnknown()
- func (m *SyncConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SyncConfig) XXX_Merge(src proto.Message)
- func (m *SyncConfig) XXX_Size() int
- func (m *SyncConfig) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var StatsConfig_ReportingModule_name = map[int32]string{
0: "Influxdb",
}
View Source
var StatsConfig_ReportingModule_value = map[string]int32{
"Influxdb": 0,
}
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { // log level LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"` // log file path LogFile string `protobuf:"bytes,2,opt,name=log_file,json=logFile,proto3" json:"log_file,omitempty"` // log file age, unit is s. LogAge uint32 `protobuf:"varint,3,opt,name=log_age,json=logAge,proto3" json:"log_age,omitempty"` // pprof config Pprof *PprofConfig `protobuf:"bytes,4,opt,name=pprof" json:"pprof,omitempty"` // App version Version string `protobuf:"bytes,100,opt,name=version,proto3" json:"version,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AppConfig) Descriptor ¶
func (*AppConfig) GetLogFile ¶
func (*AppConfig) GetLogLevel ¶
func (*AppConfig) GetPprof ¶
func (m *AppConfig) GetPprof() *PprofConfig
func (*AppConfig) GetVersion ¶
func (*AppConfig) ProtoMessage ¶
func (*AppConfig) ProtoMessage()
func (*AppConfig) XXX_DiscardUnknown ¶
func (m *AppConfig) XXX_DiscardUnknown()
func (*AppConfig) XXX_Marshal ¶
func (*AppConfig) XXX_Unmarshal ¶
type ChainConfig ¶
type ChainConfig struct { // genesis conf file path Genesis string `protobuf:"bytes,2,opt,name=genesis,proto3" json:"genesis,omitempty"` // Key dir. Keydir string `protobuf:"bytes,12,opt,name=keydir,proto3" json:"keydir,omitempty"` // start mine at launch StartMine bool `protobuf:"varint,20,opt,name=start_mine,json=startMine,proto3" json:"start_mine,omitempty"` // Supported signature cipher list. ["ECC_SECP256K1"] SignatureCiphers []string `protobuf:"bytes,24,rep,name=signature_ciphers,json=signatureCiphers" json:"signature_ciphers,omitempty"` // Block cache size BlockCacheSize uint32 `protobuf:"varint,25,opt,name=block_cache_size,json=blockCacheSize,proto3" json:"block_cache_size,omitempty"` // Tail cache size TailCacheSize uint32 `protobuf:"varint,26,opt,name=tail_cache_size,json=tailCacheSize,proto3" json:"tail_cache_size,omitempty"` // Blockpool size BlockPoolSize uint32 `protobuf:"varint,27,opt,name=block_pool_size,json=blockPoolSize,proto3" json:"block_pool_size,omitempty"` // Transaction pool size TransactionPoolSize uint32 `protobuf:"varint,28,opt,name=transaction_pool_size,json=transactionPoolSize,proto3" json:"transaction_pool_size,omitempty"` // Proposer list for multi proposer Proposers []*ProposerConfig `protobuf:"bytes,30,rep,name=proposers" json:"proposers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainConfig) Descriptor ¶
func (*ChainConfig) Descriptor() ([]byte, []int)
func (*ChainConfig) GetBlockCacheSize ¶
func (m *ChainConfig) GetBlockCacheSize() uint32
func (*ChainConfig) GetBlockPoolSize ¶
func (m *ChainConfig) GetBlockPoolSize() uint32
func (*ChainConfig) GetGenesis ¶
func (m *ChainConfig) GetGenesis() string
func (*ChainConfig) GetKeydir ¶
func (m *ChainConfig) GetKeydir() string
func (*ChainConfig) GetProposers ¶
func (m *ChainConfig) GetProposers() []*ProposerConfig
func (*ChainConfig) GetSignatureCiphers ¶
func (m *ChainConfig) GetSignatureCiphers() []string
func (*ChainConfig) GetStartMine ¶
func (m *ChainConfig) GetStartMine() bool
func (*ChainConfig) GetTailCacheSize ¶
func (m *ChainConfig) GetTailCacheSize() uint32
func (*ChainConfig) GetTransactionPoolSize ¶
func (m *ChainConfig) GetTransactionPoolSize() uint32
func (*ChainConfig) ProtoMessage ¶
func (*ChainConfig) ProtoMessage()
func (*ChainConfig) Reset ¶
func (m *ChainConfig) Reset()
func (*ChainConfig) String ¶
func (m *ChainConfig) String() string
func (*ChainConfig) XXX_DiscardUnknown ¶
func (m *ChainConfig) XXX_DiscardUnknown()
func (*ChainConfig) XXX_Marshal ¶
func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainConfig) XXX_Merge ¶
func (dst *ChainConfig) XXX_Merge(src proto.Message)
func (*ChainConfig) XXX_Size ¶
func (m *ChainConfig) XXX_Size() int
func (*ChainConfig) XXX_Unmarshal ¶
func (m *ChainConfig) XXX_Unmarshal(b []byte) error
type Config ¶
type Config struct { // Global config Global *GlobalConfig `protobuf:"bytes,1,opt,name=global" json:"global,omitempty"` // Network config. Network *NetworkConfig `protobuf:"bytes,2,opt,name=network" json:"network,omitempty"` // Chain config. Chain *ChainConfig `protobuf:"bytes,3,opt,name=chain" json:"chain,omitempty"` // RPC config. Rpc *RPCConfig `protobuf:"bytes,4,opt,name=rpc" json:"rpc,omitempty"` // Stats config. Stats *StatsConfig `protobuf:"bytes,100,opt,name=stats" json:"stats,omitempty"` // Misc config. Misc *MiscConfig `protobuf:"bytes,101,opt,name=misc" json:"misc,omitempty"` // App Config. App *AppConfig `protobuf:"bytes,102,opt,name=app" json:"app,omitempty"` // Sync Service Config. Sync *SyncConfig `protobuf:"bytes,200,opt,name=sync" json:"sync,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Med global configurations.
func (*Config) Descriptor ¶
func (*Config) GetChain ¶
func (m *Config) GetChain() *ChainConfig
func (*Config) GetGlobal ¶
func (m *Config) GetGlobal() *GlobalConfig
func (*Config) GetMisc ¶
func (m *Config) GetMisc() *MiscConfig
func (*Config) GetNetwork ¶
func (m *Config) GetNetwork() *NetworkConfig
func (*Config) GetStats ¶
func (m *Config) GetStats() *StatsConfig
func (*Config) GetSync ¶
func (m *Config) GetSync() *SyncConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type GlobalConfig ¶
type GlobalConfig struct { // ChainID. ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // Data dir. Datadir string `protobuf:"bytes,11,opt,name=datadir,proto3" json:"datadir,omitempty"` // Crypto algorithm CryptoAlg uint32 `protobuf:"varint,20,opt,name=crypto_alg,json=cryptoAlg,proto3" json:"crypto_alg,omitempty"` // Hash algorithm HashAlg uint32 `protobuf:"varint,21,opt,name=hash_alg,json=hashAlg,proto3" json:"hash_alg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GlobalConfig) Descriptor ¶
func (*GlobalConfig) Descriptor() ([]byte, []int)
func (*GlobalConfig) GetChainId ¶
func (m *GlobalConfig) GetChainId() uint32
func (*GlobalConfig) GetCryptoAlg ¶
func (m *GlobalConfig) GetCryptoAlg() uint32
func (*GlobalConfig) GetDatadir ¶
func (m *GlobalConfig) GetDatadir() string
func (*GlobalConfig) GetHashAlg ¶
func (m *GlobalConfig) GetHashAlg() uint32
func (*GlobalConfig) ProtoMessage ¶
func (*GlobalConfig) ProtoMessage()
func (*GlobalConfig) Reset ¶
func (m *GlobalConfig) Reset()
func (*GlobalConfig) String ¶
func (m *GlobalConfig) String() string
func (*GlobalConfig) XXX_DiscardUnknown ¶
func (m *GlobalConfig) XXX_DiscardUnknown()
func (*GlobalConfig) XXX_Marshal ¶
func (m *GlobalConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GlobalConfig) XXX_Merge ¶
func (dst *GlobalConfig) XXX_Merge(src proto.Message)
func (*GlobalConfig) XXX_Size ¶
func (m *GlobalConfig) XXX_Size() int
func (*GlobalConfig) XXX_Unmarshal ¶
func (m *GlobalConfig) XXX_Unmarshal(b []byte) error
type InfluxdbConfig ¶
type InfluxdbConfig struct { // Host. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Port. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // Database name. Db string `protobuf:"bytes,3,opt,name=db,proto3" json:"db,omitempty"` // Auth user. User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` // Auth password. Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*InfluxdbConfig) Descriptor ¶
func (*InfluxdbConfig) Descriptor() ([]byte, []int)
func (*InfluxdbConfig) GetDb ¶
func (m *InfluxdbConfig) GetDb() string
func (*InfluxdbConfig) GetHost ¶
func (m *InfluxdbConfig) GetHost() string
func (*InfluxdbConfig) GetPassword ¶
func (m *InfluxdbConfig) GetPassword() string
func (*InfluxdbConfig) GetPort ¶
func (m *InfluxdbConfig) GetPort() uint32
func (*InfluxdbConfig) GetUser ¶
func (m *InfluxdbConfig) GetUser() string
func (*InfluxdbConfig) ProtoMessage ¶
func (*InfluxdbConfig) ProtoMessage()
func (*InfluxdbConfig) Reset ¶
func (m *InfluxdbConfig) Reset()
func (*InfluxdbConfig) String ¶
func (m *InfluxdbConfig) String() string
func (*InfluxdbConfig) XXX_DiscardUnknown ¶
func (m *InfluxdbConfig) XXX_DiscardUnknown()
func (*InfluxdbConfig) XXX_Marshal ¶
func (m *InfluxdbConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*InfluxdbConfig) XXX_Merge ¶
func (dst *InfluxdbConfig) XXX_Merge(src proto.Message)
func (*InfluxdbConfig) XXX_Size ¶
func (m *InfluxdbConfig) XXX_Size() int
func (*InfluxdbConfig) XXX_Unmarshal ¶
func (m *InfluxdbConfig) XXX_Unmarshal(b []byte) error
type MiscConfig ¶
type MiscConfig struct { // Default encryption ciper when create new keystore file. DefaultKeystoreFileCiper string `` /* 137-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MiscConfig) Descriptor ¶
func (*MiscConfig) Descriptor() ([]byte, []int)
func (*MiscConfig) GetDefaultKeystoreFileCiper ¶
func (m *MiscConfig) GetDefaultKeystoreFileCiper() string
func (*MiscConfig) ProtoMessage ¶
func (*MiscConfig) ProtoMessage()
func (*MiscConfig) Reset ¶
func (m *MiscConfig) Reset()
func (*MiscConfig) String ¶
func (m *MiscConfig) String() string
func (*MiscConfig) XXX_DiscardUnknown ¶
func (m *MiscConfig) XXX_DiscardUnknown()
func (*MiscConfig) XXX_Marshal ¶
func (m *MiscConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MiscConfig) XXX_Merge ¶
func (dst *MiscConfig) XXX_Merge(src proto.Message)
func (*MiscConfig) XXX_Size ¶
func (m *MiscConfig) XXX_Size() int
func (*MiscConfig) XXX_Unmarshal ¶
func (m *MiscConfig) XXX_Unmarshal(b []byte) error
type NetworkConfig ¶
type NetworkConfig struct { // Listen addresses. ie: "/ip4/0.0.0.0/tcp/9000" Listens []string `protobuf:"bytes,1,rep,name=listens" json:"listens,omitempty"` // Network node privateKey address. If nil, generate a new node. NetworkKeyFile string `protobuf:"bytes,2,opt,name=network_key_file,json=networkKeyFile,proto3" json:"network_key_file,omitempty"` // Seed node's peerID and address Seeds []*pb.PeerInfo `protobuf:"bytes,11,rep,name=seeds" json:"seeds,omitempty"` // bootstrap trying period - seconds BootstrapPeriod uint32 `protobuf:"varint,12,opt,name=bootstrap_period,json=bootstrapPeriod,proto3" json:"bootstrap_period,omitempty"` // If connection is lower than minimum, try bootstrap MinimumConnections uint32 `protobuf:"varint,13,opt,name=minimum_connections,json=minimumConnections,proto3" json:"minimum_connections,omitempty"` // file name of peer store cache CacheFile string `protobuf:"bytes,21,opt,name=cache_file,json=cacheFile,proto3" json:"cache_file,omitempty"` // saving cache period CachePeriod uint32 `protobuf:"varint,22,opt,name=cache_period,json=cachePeriod,proto3" json:"cache_period,omitempty"` ConnMgrLowWaterMark uint32 `` /* 126-byte string literal not displayed */ ConnMgrHighWaterMark uint32 `` /* 129-byte string literal not displayed */ ConnMgrGracePeriod uint32 `protobuf:"varint,33,opt,name=conn_mgr_grace_period,json=connMgrGracePeriod,proto3" json:"conn_mgr_grace_period,omitempty"` MaxReadConcurrency uint32 `protobuf:"varint,34,opt,name=max_read_concurrency,json=maxReadConcurrency,proto3" json:"max_read_concurrency,omitempty"` MaxWriteConcurrency uint32 `protobuf:"varint,35,opt,name=max_write_concurrency,json=maxWriteConcurrency,proto3" json:"max_write_concurrency,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NetworkConfig) Descriptor ¶
func (*NetworkConfig) Descriptor() ([]byte, []int)
func (*NetworkConfig) GetBootstrapPeriod ¶
func (m *NetworkConfig) GetBootstrapPeriod() uint32
func (*NetworkConfig) GetCacheFile ¶
func (m *NetworkConfig) GetCacheFile() string
func (*NetworkConfig) GetCachePeriod ¶
func (m *NetworkConfig) GetCachePeriod() uint32
func (*NetworkConfig) GetConnMgrGracePeriod ¶
func (m *NetworkConfig) GetConnMgrGracePeriod() uint32
func (*NetworkConfig) GetConnMgrHighWaterMark ¶
func (m *NetworkConfig) GetConnMgrHighWaterMark() uint32
func (*NetworkConfig) GetConnMgrLowWaterMark ¶
func (m *NetworkConfig) GetConnMgrLowWaterMark() uint32
func (*NetworkConfig) GetListens ¶
func (m *NetworkConfig) GetListens() []string
func (*NetworkConfig) GetMaxReadConcurrency ¶
func (m *NetworkConfig) GetMaxReadConcurrency() uint32
func (*NetworkConfig) GetMaxWriteConcurrency ¶
func (m *NetworkConfig) GetMaxWriteConcurrency() uint32
func (*NetworkConfig) GetMinimumConnections ¶
func (m *NetworkConfig) GetMinimumConnections() uint32
func (*NetworkConfig) GetNetworkKeyFile ¶
func (m *NetworkConfig) GetNetworkKeyFile() string
func (*NetworkConfig) GetSeeds ¶
func (m *NetworkConfig) GetSeeds() []*pb.PeerInfo
func (*NetworkConfig) ProtoMessage ¶
func (*NetworkConfig) ProtoMessage()
func (*NetworkConfig) Reset ¶
func (m *NetworkConfig) Reset()
func (*NetworkConfig) String ¶
func (m *NetworkConfig) String() string
func (*NetworkConfig) XXX_DiscardUnknown ¶
func (m *NetworkConfig) XXX_DiscardUnknown()
func (*NetworkConfig) XXX_Marshal ¶
func (m *NetworkConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NetworkConfig) XXX_Merge ¶
func (dst *NetworkConfig) XXX_Merge(src proto.Message)
func (*NetworkConfig) XXX_Size ¶
func (m *NetworkConfig) XXX_Size() int
func (*NetworkConfig) XXX_Unmarshal ¶
func (m *NetworkConfig) XXX_Unmarshal(b []byte) error
type PprofConfig ¶
type PprofConfig struct { // pprof listen address, if not configured, the function closes. HttpListen string `protobuf:"bytes,1,opt,name=http_listen,json=httpListen,proto3" json:"http_listen,omitempty"` // cpu profiling file, if not configured, the profiling not start Cpuprofile string `protobuf:"bytes,2,opt,name=cpuprofile,proto3" json:"cpuprofile,omitempty"` // memory profiling file, if not configured, the profiling not start Memprofile string `protobuf:"bytes,3,opt,name=memprofile,proto3" json:"memprofile,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PprofConfig) Descriptor ¶
func (*PprofConfig) Descriptor() ([]byte, []int)
func (*PprofConfig) GetCpuprofile ¶
func (m *PprofConfig) GetCpuprofile() string
func (*PprofConfig) GetHttpListen ¶
func (m *PprofConfig) GetHttpListen() string
func (*PprofConfig) GetMemprofile ¶
func (m *PprofConfig) GetMemprofile() string
func (*PprofConfig) ProtoMessage ¶
func (*PprofConfig) ProtoMessage()
func (*PprofConfig) Reset ¶
func (m *PprofConfig) Reset()
func (*PprofConfig) String ¶
func (m *PprofConfig) String() string
func (*PprofConfig) XXX_DiscardUnknown ¶
func (m *PprofConfig) XXX_DiscardUnknown()
func (*PprofConfig) XXX_Marshal ¶
func (m *PprofConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PprofConfig) XXX_Merge ¶
func (dst *PprofConfig) XXX_Merge(src proto.Message)
func (*PprofConfig) XXX_Size ¶
func (m *PprofConfig) XXX_Size() int
func (*PprofConfig) XXX_Unmarshal ¶
func (m *PprofConfig) XXX_Unmarshal(b []byte) error
type ProposerConfig ¶
type ProposerConfig struct { // Proposer. Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"` // Proposer private key. Privkey string `protobuf:"bytes,2,opt,name=privkey,proto3" json:"privkey,omitempty"` // Coinbase. Coinbase string `protobuf:"bytes,3,opt,name=coinbase,proto3" json:"coinbase,omitempty"` // Key dir. Keydir string `protobuf:"bytes,11,opt,name=keydir,proto3" json:"keydir,omitempty"` // Passphrase. Passphrase string `protobuf:"bytes,12,opt,name=passphrase,proto3" json:"passphrase,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ProposerConfig) Descriptor ¶
func (*ProposerConfig) Descriptor() ([]byte, []int)
func (*ProposerConfig) GetCoinbase ¶
func (m *ProposerConfig) GetCoinbase() string
func (*ProposerConfig) GetKeydir ¶
func (m *ProposerConfig) GetKeydir() string
func (*ProposerConfig) GetPassphrase ¶
func (m *ProposerConfig) GetPassphrase() string
func (*ProposerConfig) GetPrivkey ¶
func (m *ProposerConfig) GetPrivkey() string
func (*ProposerConfig) GetProposer ¶
func (m *ProposerConfig) GetProposer() string
func (*ProposerConfig) ProtoMessage ¶
func (*ProposerConfig) ProtoMessage()
func (*ProposerConfig) Reset ¶
func (m *ProposerConfig) Reset()
func (*ProposerConfig) String ¶
func (m *ProposerConfig) String() string
func (*ProposerConfig) XXX_DiscardUnknown ¶
func (m *ProposerConfig) XXX_DiscardUnknown()
func (*ProposerConfig) XXX_Marshal ¶
func (m *ProposerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProposerConfig) XXX_Merge ¶
func (dst *ProposerConfig) XXX_Merge(src proto.Message)
func (*ProposerConfig) XXX_Size ¶
func (m *ProposerConfig) XXX_Size() int
func (*ProposerConfig) XXX_Unmarshal ¶
func (m *ProposerConfig) XXX_Unmarshal(b []byte) error
type RPCConfig ¶
type RPCConfig struct { // RPC listen addresses. RpcListen []string `protobuf:"bytes,1,rep,name=rpc_listen,json=rpcListen" json:"rpc_listen,omitempty"` // HTTP listen addresses. HttpListen []string `protobuf:"bytes,2,rep,name=http_listen,json=httpListen" json:"http_listen,omitempty"` // Enabled HTTP modules.["api", "admin"] HttpModule []string `protobuf:"bytes,3,rep,name=http_module,json=httpModule" json:"http_module,omitempty"` // Connection limit. ConnectionLimits int32 `protobuf:"varint,4,opt,name=connection_limits,json=connectionLimits,proto3" json:"connection_limits,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RPCConfig) Descriptor ¶
func (*RPCConfig) GetConnectionLimits ¶
func (*RPCConfig) GetHttpListen ¶
func (*RPCConfig) GetHttpModule ¶
func (*RPCConfig) GetRpcListen ¶
func (*RPCConfig) ProtoMessage ¶
func (*RPCConfig) ProtoMessage()
func (*RPCConfig) XXX_DiscardUnknown ¶
func (m *RPCConfig) XXX_DiscardUnknown()
func (*RPCConfig) XXX_Marshal ¶
func (*RPCConfig) XXX_Unmarshal ¶
type StatsConfig ¶
type StatsConfig struct { // Enable metrics of not. EnableMetrics bool `protobuf:"varint,1,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics,omitempty"` ReportingModule []StatsConfig_ReportingModule `` /* 149-byte string literal not displayed */ // Influxdb config. Influxdb *InfluxdbConfig `protobuf:"bytes,11,opt,name=influxdb" json:"influxdb,omitempty"` MetricsTags []string `protobuf:"bytes,12,rep,name=metrics_tags,json=metricsTags" json:"metrics_tags,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StatsConfig) Descriptor ¶
func (*StatsConfig) Descriptor() ([]byte, []int)
func (*StatsConfig) GetEnableMetrics ¶
func (m *StatsConfig) GetEnableMetrics() bool
func (*StatsConfig) GetInfluxdb ¶
func (m *StatsConfig) GetInfluxdb() *InfluxdbConfig
func (*StatsConfig) GetMetricsTags ¶
func (m *StatsConfig) GetMetricsTags() []string
func (*StatsConfig) GetReportingModule ¶
func (m *StatsConfig) GetReportingModule() []StatsConfig_ReportingModule
func (*StatsConfig) ProtoMessage ¶
func (*StatsConfig) ProtoMessage()
func (*StatsConfig) Reset ¶
func (m *StatsConfig) Reset()
func (*StatsConfig) String ¶
func (m *StatsConfig) String() string
func (*StatsConfig) XXX_DiscardUnknown ¶
func (m *StatsConfig) XXX_DiscardUnknown()
func (*StatsConfig) XXX_Marshal ¶
func (m *StatsConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StatsConfig) XXX_Merge ¶
func (dst *StatsConfig) XXX_Merge(src proto.Message)
func (*StatsConfig) XXX_Size ¶
func (m *StatsConfig) XXX_Size() int
func (*StatsConfig) XXX_Unmarshal ¶
func (m *StatsConfig) XXX_Unmarshal(b []byte) error
type StatsConfig_ReportingModule ¶
type StatsConfig_ReportingModule int32
Reporting modules.
const (
StatsConfig_Influxdb StatsConfig_ReportingModule = 0
)
func (StatsConfig_ReportingModule) EnumDescriptor ¶
func (StatsConfig_ReportingModule) EnumDescriptor() ([]byte, []int)
func (StatsConfig_ReportingModule) String ¶
func (x StatsConfig_ReportingModule) String() string
type SyncConfig ¶
type SyncConfig struct { // Waiting time for response after send message to peer (seconds) ResponseTimeLimit uint32 `protobuf:"varint,1,opt,name=response_time_limit,json=responseTimeLimit,proto3" json:"response_time_limit,omitempty"` // If the request fails, retry this number of times NumberOfRetries uint32 `protobuf:"varint,2,opt,name=number_of_retries,json=numberOfRetries,proto3" json:"number_of_retries,omitempty"` // Maximum Number of concurrent download ActiveDownloadLimit uint32 `protobuf:"varint,3,opt,name=active_download_limit,json=activeDownloadLimit,proto3" json:"active_download_limit,omitempty"` // Height gap to activate download SyncActivationHeight uint64 `protobuf:"varint,20,opt,name=sync_activation_height,json=syncActivationHeight,proto3" json:"sync_activation_height,omitempty"` // Height gap to activate download SyncActivationLibGap uint64 `` /* 127-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SyncConfig) Descriptor ¶
func (*SyncConfig) Descriptor() ([]byte, []int)
func (*SyncConfig) GetActiveDownloadLimit ¶
func (m *SyncConfig) GetActiveDownloadLimit() uint32
func (*SyncConfig) GetNumberOfRetries ¶
func (m *SyncConfig) GetNumberOfRetries() uint32
func (*SyncConfig) GetResponseTimeLimit ¶
func (m *SyncConfig) GetResponseTimeLimit() uint32
func (*SyncConfig) GetSyncActivationHeight ¶
func (m *SyncConfig) GetSyncActivationHeight() uint64
func (*SyncConfig) GetSyncActivationLibGap ¶
func (m *SyncConfig) GetSyncActivationLibGap() uint64
func (*SyncConfig) ProtoMessage ¶
func (*SyncConfig) ProtoMessage()
func (*SyncConfig) Reset ¶
func (m *SyncConfig) Reset()
func (*SyncConfig) String ¶
func (m *SyncConfig) String() string
func (*SyncConfig) XXX_DiscardUnknown ¶
func (m *SyncConfig) XXX_DiscardUnknown()
func (*SyncConfig) XXX_Marshal ¶
func (m *SyncConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncConfig) XXX_Merge ¶
func (dst *SyncConfig) XXX_Merge(src proto.Message)
func (*SyncConfig) XXX_Size ¶
func (m *SyncConfig) XXX_Size() int
func (*SyncConfig) XXX_Unmarshal ¶
func (m *SyncConfig) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.