nebletpb

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2017 License: LGPL-3.0 Imports: 3 Imported by: 0

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

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) Descriptor() ([]byte, []int)

func (*Config) GetAccount

func (m *Config) GetAccount() *AccountConfig

func (*Config) GetP2P

func (m *Config) GetP2P() *P2PConfig

func (*Config) GetPow

func (m *Config) GetPow() *PowConfig

func (*Config) GetRpc

func (m *Config) GetRpc() *RPCConfig

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

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) Descriptor() ([]byte, []int)

func (*P2PConfig) GetChainId added in v0.3.0

func (m *P2PConfig) GetChainId() uint32

func (*P2PConfig) GetPort

func (m *P2PConfig) GetPort() uint32

func (*P2PConfig) GetSeed

func (m *P2PConfig) GetSeed() string

func (*P2PConfig) GetVersion added in v0.3.0

func (m *P2PConfig) GetVersion() uint32

func (*P2PConfig) ProtoMessage

func (*P2PConfig) ProtoMessage()

func (*P2PConfig) Reset

func (m *P2PConfig) Reset()

func (*P2PConfig) String

func (m *P2PConfig) String() string

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) Descriptor() ([]byte, []int)

func (*PowConfig) GetCoinbase

func (m *PowConfig) GetCoinbase() string

func (*PowConfig) ProtoMessage

func (*PowConfig) ProtoMessage()

func (*PowConfig) Reset

func (m *PowConfig) Reset()

func (*PowConfig) String

func (m *PowConfig) String() string

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) Descriptor() ([]byte, []int)

func (*RPCConfig) GetApiPort added in v0.3.0

func (m *RPCConfig) GetApiPort() uint32

func (*RPCConfig) GetGatewayPort added in v0.3.0

func (m *RPCConfig) GetGatewayPort() uint32

func (*RPCConfig) GetManagementPort added in v0.3.0

func (m *RPCConfig) GetManagementPort() uint32

func (*RPCConfig) ProtoMessage

func (*RPCConfig) ProtoMessage()

func (*RPCConfig) Reset

func (m *RPCConfig) Reset()

func (*RPCConfig) String

func (m *RPCConfig) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL