nebletpb

package
v2.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 5, 2019 License: LGPL-3.0 Imports: 3 Imported by: 12

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
NetworkConfig
ChainConfig
RPCConfig
AppConfig
PprofConfig
MiscConfig
StatsConfig
InfluxdbConfig
NbreConfig

Index

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 added in v1.0.0

type AppConfig struct {
	LogLevel string `protobuf:"bytes,1,opt,name=log_level,json=logLevel,proto3" json:"log_level"`
	LogFile  string `protobuf:"bytes,2,opt,name=log_file,json=logFile,proto3" json:"log_file"`
	// log file age, unit is s.
	LogAge            uint32 `protobuf:"varint,3,opt,name=log_age,json=logAge,proto3" json:"log_age"`
	EnableCrashReport bool   `protobuf:"varint,4,opt,name=enable_crash_report,json=enableCrashReport,proto3" json:"enable_crash_report"`
	CrashReportUrl    string `protobuf:"bytes,5,opt,name=crash_report_url,json=crashReportUrl,proto3" json:"crash_report_url"`
	// pprof config
	Pprof   *PprofConfig `protobuf:"bytes,6,opt,name=pprof" json:"pprof"`
	Version string       `protobuf:"bytes,100,opt,name=version,proto3" json:"version"`
}

func (*AppConfig) Descriptor added in v1.0.0

func (*AppConfig) Descriptor() ([]byte, []int)

func (*AppConfig) GetCrashReportUrl added in v1.0.0

func (m *AppConfig) GetCrashReportUrl() string

func (*AppConfig) GetEnableCrashReport added in v1.0.0

func (m *AppConfig) GetEnableCrashReport() bool

func (*AppConfig) GetLogAge added in v1.0.0

func (m *AppConfig) GetLogAge() uint32

func (*AppConfig) GetLogFile added in v1.0.0

func (m *AppConfig) GetLogFile() string

func (*AppConfig) GetLogLevel added in v1.0.0

func (m *AppConfig) GetLogLevel() string

func (*AppConfig) GetPprof added in v1.0.0

func (m *AppConfig) GetPprof() *PprofConfig

func (*AppConfig) GetVersion added in v1.0.0

func (m *AppConfig) GetVersion() string

func (*AppConfig) ProtoMessage added in v1.0.0

func (*AppConfig) ProtoMessage()

func (*AppConfig) Reset added in v1.0.0

func (m *AppConfig) Reset()

func (*AppConfig) String added in v1.0.0

func (m *AppConfig) String() string

type ChainConfig added in v1.0.0

type ChainConfig struct {
	// ChainID.
	ChainId uint32 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id"`
	// genesis conf file path
	Genesis string `protobuf:"bytes,2,opt,name=genesis,proto3" json:"genesis"`
	// Data dir.
	Datadir string `protobuf:"bytes,11,opt,name=datadir,proto3" json:"datadir"`
	// Key dir.
	Keydir string `protobuf:"bytes,12,opt,name=keydir,proto3" json:"keydir"`
	// Start mine at launch
	StartMine bool `protobuf:"varint,20,opt,name=start_mine,json=startMine,proto3" json:"start_mine"`
	// Coinbase.
	Coinbase string `protobuf:"bytes,21,opt,name=coinbase,proto3" json:"coinbase"`
	// Miner.
	Miner string `protobuf:"bytes,22,opt,name=miner,proto3" json:"miner"`
	// Passphrase.
	Passphrase string `protobuf:"bytes,23,opt,name=passphrase,proto3" json:"passphrase"`
	// Enable remote sign server
	EnableRemoteSignServer bool `protobuf:"varint,24,opt,name=enable_remote_sign_server,json=enableRemoteSignServer,proto3" json:"enable_remote_sign_server"`
	// Remote sign server
	RemoteSignServer string `protobuf:"bytes,25,opt,name=remote_sign_server,json=remoteSignServer,proto3" json:"remote_sign_server"`
	// Lowest GasPrice.
	GasPrice string `protobuf:"bytes,26,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price"`
	// Max GasLimit.
	GasLimit string `protobuf:"bytes,27,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit"`
	// Supported signature cipher list. ["ECC_SECP256K1"]
	SignatureCiphers   []string `protobuf:"bytes,28,rep,name=signature_ciphers,json=signatureCiphers" json:"signature_ciphers"`
	SuperNode          bool     `protobuf:"varint,30,opt,name=super_node,json=superNode,proto3" json:"super_node"`
	UnsupportedKeyword string   `protobuf:"bytes,31,opt,name=unsupported_keyword,json=unsupportedKeyword,proto3" json:"unsupported_keyword"`
	Dynasty            string   `protobuf:"bytes,32,opt,name=dynasty,proto3" json:"dynasty"`
	// access control config path
	Access string `protobuf:"bytes,33,opt,name=access,proto3" json:"access"`
}

func (*ChainConfig) Descriptor added in v1.0.0

func (*ChainConfig) Descriptor() ([]byte, []int)

func (*ChainConfig) GetAccess

func (m *ChainConfig) GetAccess() string

func (*ChainConfig) GetChainId added in v1.0.0

func (m *ChainConfig) GetChainId() uint32

func (*ChainConfig) GetCoinbase added in v1.0.0

func (m *ChainConfig) GetCoinbase() string

func (*ChainConfig) GetDatadir added in v1.0.0

func (m *ChainConfig) GetDatadir() string

func (*ChainConfig) GetDynasty added in v1.0.8

func (m *ChainConfig) GetDynasty() string

func (*ChainConfig) GetEnableRemoteSignServer added in v1.0.0

func (m *ChainConfig) GetEnableRemoteSignServer() bool

func (*ChainConfig) GetGasLimit added in v1.0.0

func (m *ChainConfig) GetGasLimit() string

func (*ChainConfig) GetGasPrice added in v1.0.0

func (m *ChainConfig) GetGasPrice() string

func (*ChainConfig) GetGenesis added in v1.0.0

func (m *ChainConfig) GetGenesis() string

func (*ChainConfig) GetKeydir added in v1.0.0

func (m *ChainConfig) GetKeydir() string

func (*ChainConfig) GetMiner added in v1.0.0

func (m *ChainConfig) GetMiner() string

func (*ChainConfig) GetPassphrase added in v1.0.0

func (m *ChainConfig) GetPassphrase() string

func (*ChainConfig) GetRemoteSignServer added in v1.0.0

func (m *ChainConfig) GetRemoteSignServer() string

func (*ChainConfig) GetSignatureCiphers added in v1.0.0

func (m *ChainConfig) GetSignatureCiphers() []string

func (*ChainConfig) GetStartMine added in v1.0.0

func (m *ChainConfig) GetStartMine() bool

func (*ChainConfig) GetSuperNode added in v1.0.2

func (m *ChainConfig) GetSuperNode() bool

func (*ChainConfig) GetUnsupportedKeyword added in v1.0.2

func (m *ChainConfig) GetUnsupportedKeyword() string

func (*ChainConfig) ProtoMessage added in v1.0.0

func (*ChainConfig) ProtoMessage()

func (*ChainConfig) Reset added in v1.0.0

func (m *ChainConfig) Reset()

func (*ChainConfig) String added in v1.0.0

func (m *ChainConfig) String() string

type Config

type Config struct {
	// Network config.
	Network *NetworkConfig `protobuf:"bytes,1,opt,name=network" json:"network"`
	// Chain config.
	Chain *ChainConfig `protobuf:"bytes,2,opt,name=chain" json:"chain"`
	// RPC config.
	Rpc *RPCConfig `protobuf:"bytes,3,opt,name=rpc" json:"rpc"`
	// Stats config.
	Stats *StatsConfig `protobuf:"bytes,100,opt,name=stats" json:"stats"`
	// Misc config.
	Misc *MiscConfig `protobuf:"bytes,101,opt,name=misc" json:"misc"`
	// App Config.
	App *AppConfig `protobuf:"bytes,102,opt,name=app" json:"app"`
	// Nbre Config.
	Nbre *NbreConfig `protobuf:"bytes,200,opt,name=nbre" json:"nbre"`
}

Neblet global configurations.

func (*Config) Descriptor

func (*Config) Descriptor() ([]byte, []int)

func (*Config) GetApp added in v1.0.0

func (m *Config) GetApp() *AppConfig

func (*Config) GetChain added in v1.0.0

func (m *Config) GetChain() *ChainConfig

func (*Config) GetMisc added in v1.0.0

func (m *Config) GetMisc() *MiscConfig

func (*Config) GetNbre

func (m *Config) GetNbre() *NbreConfig

func (*Config) GetNetwork added in v1.0.0

func (m *Config) GetNetwork() *NetworkConfig

func (*Config) GetRpc

func (m *Config) GetRpc() *RPCConfig

func (*Config) GetStats added in v1.0.0

func (m *Config) GetStats() *StatsConfig

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

type InfluxdbConfig added in v1.0.0

type InfluxdbConfig struct {
	// Host.
	Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host"`
	// Port.
	Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port"`
	// Database name.
	Db string `protobuf:"bytes,3,opt,name=db,proto3" json:"db"`
	// Auth user.
	User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user"`
	// Auth password.
	Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password"`
}

func (*InfluxdbConfig) Descriptor added in v1.0.0

func (*InfluxdbConfig) Descriptor() ([]byte, []int)

func (*InfluxdbConfig) GetDb added in v1.0.0

func (m *InfluxdbConfig) GetDb() string

func (*InfluxdbConfig) GetHost added in v1.0.0

func (m *InfluxdbConfig) GetHost() string

func (*InfluxdbConfig) GetPassword added in v1.0.0

func (m *InfluxdbConfig) GetPassword() string

func (*InfluxdbConfig) GetPort added in v1.0.0

func (m *InfluxdbConfig) GetPort() uint32

func (*InfluxdbConfig) GetUser added in v1.0.0

func (m *InfluxdbConfig) GetUser() string

func (*InfluxdbConfig) ProtoMessage added in v1.0.0

func (*InfluxdbConfig) ProtoMessage()

func (*InfluxdbConfig) Reset added in v1.0.0

func (m *InfluxdbConfig) Reset()

func (*InfluxdbConfig) String added in v1.0.0

func (m *InfluxdbConfig) String() string

type MiscConfig added in v1.0.0

type MiscConfig struct {
	// Default encryption ciper when create new keystore file.
	DefaultKeystoreFileCiper string `` /* 127-byte string literal not displayed */
}

func (*MiscConfig) Descriptor added in v1.0.0

func (*MiscConfig) Descriptor() ([]byte, []int)

func (*MiscConfig) GetDefaultKeystoreFileCiper added in v1.0.0

func (m *MiscConfig) GetDefaultKeystoreFileCiper() string

func (*MiscConfig) ProtoMessage added in v1.0.0

func (*MiscConfig) ProtoMessage()

func (*MiscConfig) Reset added in v1.0.0

func (m *MiscConfig) Reset()

func (*MiscConfig) String added in v1.0.0

func (m *MiscConfig) String() string

type NbreConfig

type NbreConfig struct {
	// Nbre root dir
	RootDir string `protobuf:"bytes,1,opt,name=root_dir,json=rootDir,proto3" json:"root_dir"`
	// Nbre log path
	LogDir string `protobuf:"bytes,2,opt,name=log_dir,json=logDir,proto3" json:"log_dir"`
	// Nbre data path
	DataDir string `protobuf:"bytes,3,opt,name=data_dir,json=dataDir,proto3" json:"data_dir"`
	// Nbre runtime path
	NbrePath string `protobuf:"bytes,4,opt,name=nbre_path,json=nbrePath,proto3" json:"nbre_path"`
	// Nbre admin address
	AdminAddress string `protobuf:"bytes,5,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address"`
	// Nbre start height
	StartHeight uint64 `protobuf:"varint,6,opt,name=start_height,json=startHeight,proto3" json:"start_height"`
	// Nbre net ipc listen.
	IpcListen string `protobuf:"bytes,7,opt,name=ipc_listen,json=ipcListen,proto3" json:"ipc_listen"`
	// Nbre net ipc port.
	IpcPort uint32 `protobuf:"varint,8,opt,name=ipc_port,json=ipcPort,proto3" json:"ipc_port"`
}

func (*NbreConfig) Descriptor

func (*NbreConfig) Descriptor() ([]byte, []int)

func (*NbreConfig) GetAdminAddress

func (m *NbreConfig) GetAdminAddress() string

func (*NbreConfig) GetDataDir

func (m *NbreConfig) GetDataDir() string

func (*NbreConfig) GetIpcListen

func (m *NbreConfig) GetIpcListen() string

func (*NbreConfig) GetIpcPort

func (m *NbreConfig) GetIpcPort() uint32

func (*NbreConfig) GetLogDir

func (m *NbreConfig) GetLogDir() string

func (*NbreConfig) GetNbrePath

func (m *NbreConfig) GetNbrePath() string

func (*NbreConfig) GetRootDir

func (m *NbreConfig) GetRootDir() string

func (*NbreConfig) GetStartHeight

func (m *NbreConfig) GetStartHeight() uint64

func (*NbreConfig) ProtoMessage

func (*NbreConfig) ProtoMessage()

func (*NbreConfig) Reset

func (m *NbreConfig) Reset()

func (*NbreConfig) String

func (m *NbreConfig) String() string

type NetworkConfig added in v1.0.0

type NetworkConfig struct {
	// Neb seed node address.
	Seed []string `protobuf:"bytes,1,rep,name=seed" json:"seed"`
	// Listen addresses.
	Listen []string `protobuf:"bytes,2,rep,name=listen" json:"listen"`
	// Network node privateKey address. If nil, generate a new node.
	PrivateKey string `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key"`
	// Network ID
	NetworkId            uint32 `protobuf:"varint,4,opt,name=network_id,json=networkId,proto3" json:"network_id"`
	StreamLimits         int32  `protobuf:"varint,5,opt,name=stream_limits,json=streamLimits,proto3" json:"stream_limits"`
	ReservedStreamLimits int32  `protobuf:"varint,6,opt,name=reserved_stream_limits,json=reservedStreamLimits,proto3" json:"reserved_stream_limits"`
}

func (*NetworkConfig) Descriptor added in v1.0.0

func (*NetworkConfig) Descriptor() ([]byte, []int)

func (*NetworkConfig) GetListen added in v1.0.0

func (m *NetworkConfig) GetListen() []string

func (*NetworkConfig) GetNetworkId added in v1.0.0

func (m *NetworkConfig) GetNetworkId() uint32

func (*NetworkConfig) GetPrivateKey added in v1.0.0

func (m *NetworkConfig) GetPrivateKey() string

func (*NetworkConfig) GetReservedStreamLimits added in v1.0.1

func (m *NetworkConfig) GetReservedStreamLimits() int32

func (*NetworkConfig) GetSeed added in v1.0.0

func (m *NetworkConfig) GetSeed() []string

func (*NetworkConfig) GetStreamLimits added in v1.0.1

func (m *NetworkConfig) GetStreamLimits() int32

func (*NetworkConfig) ProtoMessage added in v1.0.0

func (*NetworkConfig) ProtoMessage()

func (*NetworkConfig) Reset added in v1.0.0

func (m *NetworkConfig) Reset()

func (*NetworkConfig) String added in v1.0.0

func (m *NetworkConfig) String() string

type PprofConfig added in v1.0.0

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"`
	// cpu profiling file, if not configured, the profiling not start
	Cpuprofile string `protobuf:"bytes,2,opt,name=cpuprofile,proto3" json:"cpuprofile"`
	// memory profiling file, if not configured, the profiling not start
	Memprofile string `protobuf:"bytes,3,opt,name=memprofile,proto3" json:"memprofile"`
}

func (*PprofConfig) Descriptor added in v1.0.0

func (*PprofConfig) Descriptor() ([]byte, []int)

func (*PprofConfig) GetCpuprofile added in v1.0.0

func (m *PprofConfig) GetCpuprofile() string

func (*PprofConfig) GetHttpListen added in v1.0.0

func (m *PprofConfig) GetHttpListen() string

func (*PprofConfig) GetMemprofile added in v1.0.0

func (m *PprofConfig) GetMemprofile() string

func (*PprofConfig) ProtoMessage added in v1.0.0

func (*PprofConfig) ProtoMessage()

func (*PprofConfig) Reset added in v1.0.0

func (m *PprofConfig) Reset()

func (*PprofConfig) String added in v1.0.0

func (m *PprofConfig) String() string

type RPCConfig

type RPCConfig struct {
	// RPC listen addresses.
	RpcListen []string `protobuf:"bytes,1,rep,name=rpc_listen,json=rpcListen" json:"rpc_listen"`
	// HTTP listen addresses.
	HttpListen []string `protobuf:"bytes,2,rep,name=http_listen,json=httpListen" json:"http_listen"`
	// Enabled HTTP modules.["api", "admin"]
	HttpModule       []string `protobuf:"bytes,3,rep,name=http_module,json=httpModule" json:"http_module"`
	ConnectionLimits int32    `protobuf:"varint,4,opt,name=connection_limits,json=connectionLimits,proto3" json:"connection_limits"`
	HttpLimits       int32    `protobuf:"varint,5,opt,name=http_limits,json=httpLimits,proto3" json:"http_limits"`
	// HTTP CORS allowed origins
	HttpCors []string `protobuf:"bytes,6,rep,name=http_cors,json=httpCors" json:"http_cors"`
}

func (*RPCConfig) Descriptor

func (*RPCConfig) Descriptor() ([]byte, []int)

func (*RPCConfig) GetConnectionLimits added in v1.0.0

func (m *RPCConfig) GetConnectionLimits() int32

func (*RPCConfig) GetHttpCors added in v1.0.0

func (m *RPCConfig) GetHttpCors() []string

func (*RPCConfig) GetHttpLimits added in v1.0.0

func (m *RPCConfig) GetHttpLimits() int32

func (*RPCConfig) GetHttpListen added in v1.0.0

func (m *RPCConfig) GetHttpListen() []string

func (*RPCConfig) GetHttpModule added in v1.0.0

func (m *RPCConfig) GetHttpModule() []string

func (*RPCConfig) GetRpcListen added in v1.0.0

func (m *RPCConfig) GetRpcListen() []string

func (*RPCConfig) ProtoMessage

func (*RPCConfig) ProtoMessage()

func (*RPCConfig) Reset

func (m *RPCConfig) Reset()

func (*RPCConfig) String

func (m *RPCConfig) String() string

type StatsConfig added in v1.0.0

type StatsConfig struct {
	// Enable metrics or not.
	EnableMetrics   bool                          `protobuf:"varint,1,opt,name=enable_metrics,json=enableMetrics,proto3" json:"enable_metrics"`
	ReportingModule []StatsConfig_ReportingModule `` /* 139-byte string literal not displayed */
	// Influxdb config.
	Influxdb    *InfluxdbConfig `protobuf:"bytes,11,opt,name=influxdb" json:"influxdb"`
	MetricsTags []string        `protobuf:"bytes,12,rep,name=metrics_tags,json=metricsTags" json:"metrics_tags"`
}

func (*StatsConfig) Descriptor added in v1.0.0

func (*StatsConfig) Descriptor() ([]byte, []int)

func (*StatsConfig) GetEnableMetrics added in v1.0.0

func (m *StatsConfig) GetEnableMetrics() bool

func (*StatsConfig) GetInfluxdb added in v1.0.0

func (m *StatsConfig) GetInfluxdb() *InfluxdbConfig

func (*StatsConfig) GetMetricsTags added in v1.0.0

func (m *StatsConfig) GetMetricsTags() []string

func (*StatsConfig) GetReportingModule added in v1.0.0

func (m *StatsConfig) GetReportingModule() []StatsConfig_ReportingModule

func (*StatsConfig) ProtoMessage added in v1.0.0

func (*StatsConfig) ProtoMessage()

func (*StatsConfig) Reset added in v1.0.0

func (m *StatsConfig) Reset()

func (*StatsConfig) String added in v1.0.0

func (m *StatsConfig) String() string

type StatsConfig_ReportingModule added in v1.0.0

type StatsConfig_ReportingModule int32

Reporting modules.

const (
	StatsConfig_Influxdb StatsConfig_ReportingModule = 0
)

func (StatsConfig_ReportingModule) EnumDescriptor added in v1.0.0

func (StatsConfig_ReportingModule) EnumDescriptor() ([]byte, []int)

func (StatsConfig_ReportingModule) String added in v1.0.0

Jump to

Keyboard shortcuts

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