Documentation
¶
Overview ¶
Package nebletpb is a generated protocol buffer package.
It is generated from these files:
config.proto
It has these top-level messages:
Config P2PConfig RPCConfig PowConfig AccountConfig
Index ¶
- type AccountConfig
- func (*AccountConfig) Descriptor() ([]byte, []int)
- func (m *AccountConfig) GetEncrypt() uint32
- func (m *AccountConfig) GetKeyDir() string
- func (m *AccountConfig) GetSignature() uint32
- func (m *AccountConfig) GetTestPassphrase() string
- func (*AccountConfig) ProtoMessage()
- func (m *AccountConfig) Reset()
- func (m *AccountConfig) String() string
- type Config
- type P2PConfig
- type PowConfig
- type RPCConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountConfig ¶
type AccountConfig struct { // Account transaction sign algorithm type Signature uint32 `protobuf:"varint,1,opt,name=signature,proto3" json:"signature,omitempty"` // Account addr encrypt algorithm type Encrypt uint32 `protobuf:"varint,2,opt,name=encrypt,proto3" json:"encrypt,omitempty"` // Account key file directory KeyDir string `protobuf:"bytes,3,opt,name=key_dir,json=keyDir,proto3" json:"key_dir,omitempty"` // Account test keyfile's passphrase TestPassphrase string `protobuf:"bytes,4,opt,name=test_passphrase,json=testPassphrase,proto3" json:"test_passphrase,omitempty"` }
func (*AccountConfig) Descriptor ¶
func (*AccountConfig) Descriptor() ([]byte, []int)
func (*AccountConfig) GetEncrypt ¶
func (m *AccountConfig) GetEncrypt() uint32
func (*AccountConfig) GetKeyDir ¶
func (m *AccountConfig) GetKeyDir() string
func (*AccountConfig) GetSignature ¶
func (m *AccountConfig) GetSignature() uint32
func (*AccountConfig) GetTestPassphrase ¶
func (m *AccountConfig) GetTestPassphrase() string
func (*AccountConfig) ProtoMessage ¶
func (*AccountConfig) ProtoMessage()
func (*AccountConfig) Reset ¶
func (m *AccountConfig) Reset()
func (*AccountConfig) String ¶
func (m *AccountConfig) String() string
type Config ¶
type Config struct { // P2P network config. P2P *P2PConfig `protobuf:"bytes,1,opt,name=p2p" json:"p2p,omitempty"` // RPC server config. Rpc *RPCConfig `protobuf:"bytes,2,opt,name=rpc" json:"rpc,omitempty"` // Pow config Pow *PowConfig `protobuf:"bytes,3,opt,name=pow" json:"pow,omitempty"` // Account manager config Account *AccountConfig `protobuf:"bytes,4,opt,name=account" json:"account,omitempty"` }
Neblet global configurations.
func (*Config) Descriptor ¶
func (*Config) GetAccount ¶
func (m *Config) GetAccount() *AccountConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
type P2PConfig ¶
type P2PConfig struct { // P2P seed node addresses. Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"` // P2P node port number. Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // P2P node chainID. ChainId uint32 `protobuf:"varint,3,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` // P2P node version. Version uint32 `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"` }
func (*P2PConfig) Descriptor ¶
func (*P2PConfig) GetChainId ¶ added in v0.3.0
func (*P2PConfig) GetVersion ¶ added in v0.3.0
func (*P2PConfig) ProtoMessage ¶
func (*P2PConfig) ProtoMessage()
type PowConfig ¶
type PowConfig struct { // pow miner's coinbase Coinbase string `protobuf:"bytes,1,opt,name=coinbase,proto3" json:"coinbase,omitempty"` }
func (*PowConfig) Descriptor ¶
func (*PowConfig) GetCoinbase ¶
func (*PowConfig) ProtoMessage ¶
func (*PowConfig) ProtoMessage()
type RPCConfig ¶
type RPCConfig struct { // API RPC server listening port number. ApiPort uint32 `protobuf:"varint,1,opt,name=api_port,json=apiPort,proto3" json:"api_port,omitempty"` // Management RPC server listening port number. ManagementPort uint32 `protobuf:"varint,2,opt,name=management_port,json=managementPort,proto3" json:"management_port,omitempty"` // Json RPC Gateway server listening port number. GatewayPort uint32 `protobuf:"varint,3,opt,name=gateway_port,json=gatewayPort,proto3" json:"gateway_port,omitempty"` }
func (*RPCConfig) Descriptor ¶
func (*RPCConfig) GetApiPort ¶ added in v0.3.0
func (*RPCConfig) GetGatewayPort ¶ added in v0.3.0
func (*RPCConfig) GetManagementPort ¶ added in v0.3.0
func (*RPCConfig) ProtoMessage ¶
func (*RPCConfig) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.