configpb

package
v0.0.0-...-163fc3c Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Profile              string   `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
	CpuProfile           string   `protobuf:"bytes,2,opt,name=cpu_profile,json=cpuProfile,proto3" json:"cpu_profile,omitempty"`
	PubPassword          string   `protobuf:"bytes,3,opt,name=pub_password,json=pubPassword,proto3" json:"pub_password,omitempty"`
	Hostname             string   `protobuf:"bytes,4,opt,name=hostname,proto3" json:"hostname,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*AppConfig) Descriptor

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

func (*AppConfig) GetCpuProfile

func (m *AppConfig) GetCpuProfile() string

func (*AppConfig) GetHostname

func (m *AppConfig) GetHostname() string

func (*AppConfig) GetProfile

func (m *AppConfig) GetProfile() string

func (*AppConfig) GetPubPassword

func (m *AppConfig) GetPubPassword() string

func (*AppConfig) ProtoMessage

func (*AppConfig) ProtoMessage()

func (*AppConfig) Reset

func (m *AppConfig) Reset()

func (*AppConfig) String

func (m *AppConfig) String() string

func (*AppConfig) XXX_DiscardUnknown

func (m *AppConfig) XXX_DiscardUnknown()

func (*AppConfig) XXX_Marshal

func (m *AppConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AppConfig) XXX_Merge

func (m *AppConfig) XXX_Merge(src proto.Message)

func (*AppConfig) XXX_Size

func (m *AppConfig) XXX_Size() int

func (*AppConfig) XXX_Unmarshal

func (m *AppConfig) XXX_Unmarshal(b []byte) error

type Config

type Config struct {
	App                  *AppConfig     `protobuf:"bytes,1,opt,name=app,proto3" json:"app,omitempty"`
	Network              *NetworkConfig `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Db                   *DataConfig    `protobuf:"bytes,3,opt,name=db,proto3" json:"db,omitempty"`
	Log                  *LogConfig     `protobuf:"bytes,4,opt,name=log,proto3" json:"log,omitempty"`
	Miner                *MinerConfig   `protobuf:"bytes,5,opt,name=miner,proto3" json:"miner,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func NewConfig

func NewConfig() *Config

func (*Config) Descriptor

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

func (*Config) GetApp

func (m *Config) GetApp() *AppConfig

func (*Config) GetDb

func (m *Config) GetDb() *DataConfig

func (*Config) GetLog

func (m *Config) GetLog() *LogConfig

func (*Config) GetMiner

func (m *Config) GetMiner() *MinerConfig

func (*Config) GetNetwork

func (m *Config) GetNetwork() *NetworkConfig

func (*Config) ProtoMessage

func (*Config) ProtoMessage()

func (*Config) Reset

func (m *Config) Reset()

func (*Config) String

func (m *Config) String() string

func (*Config) XXX_DiscardUnknown

func (m *Config) XXX_DiscardUnknown()

func (*Config) XXX_Marshal

func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Config) XXX_Merge

func (m *Config) XXX_Merge(src proto.Message)

func (*Config) XXX_Size

func (m *Config) XXX_Size() int

func (*Config) XXX_Unmarshal

func (m *Config) XXX_Unmarshal(b []byte) error

type DataConfig

type DataConfig struct {
	DataDir              string   `protobuf:"bytes,1,opt,name=data_dir,json=dataDir,proto3" json:"data_dir,omitempty"`
	DbType               string   `protobuf:"bytes,2,opt,name=db_type,json=dbType,proto3" json:"db_type,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*DataConfig) Descriptor

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

func (*DataConfig) GetDataDir

func (m *DataConfig) GetDataDir() string

func (*DataConfig) GetDbType

func (m *DataConfig) GetDbType() string

func (*DataConfig) ProtoMessage

func (*DataConfig) ProtoMessage()

func (*DataConfig) Reset

func (m *DataConfig) Reset()

func (*DataConfig) String

func (m *DataConfig) String() string

func (*DataConfig) XXX_DiscardUnknown

func (m *DataConfig) XXX_DiscardUnknown()

func (*DataConfig) XXX_Marshal

func (m *DataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DataConfig) XXX_Merge

func (m *DataConfig) XXX_Merge(src proto.Message)

func (*DataConfig) XXX_Size

func (m *DataConfig) XXX_Size() int

func (*DataConfig) XXX_Unmarshal

func (m *DataConfig) XXX_Unmarshal(b []byte) error

type LogConfig

type LogConfig struct {
	LogDir               string   `protobuf:"bytes,1,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"`
	LogLevel             string   `protobuf:"bytes,2,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	DisableCprint        bool     `protobuf:"varint,3,opt,name=disable_cprint,json=disableCprint,proto3" json:"disable_cprint,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*LogConfig) Descriptor

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

func (*LogConfig) GetDisableCprint

func (m *LogConfig) GetDisableCprint() bool

func (*LogConfig) GetLogDir

func (m *LogConfig) GetLogDir() string

func (*LogConfig) GetLogLevel

func (m *LogConfig) GetLogLevel() string

func (*LogConfig) ProtoMessage

func (*LogConfig) ProtoMessage()

func (*LogConfig) Reset

func (m *LogConfig) Reset()

func (*LogConfig) String

func (m *LogConfig) String() string

func (*LogConfig) XXX_DiscardUnknown

func (m *LogConfig) XXX_DiscardUnknown()

func (*LogConfig) XXX_Marshal

func (m *LogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LogConfig) XXX_Merge

func (m *LogConfig) XXX_Merge(src proto.Message)

func (*LogConfig) XXX_Size

func (m *LogConfig) XXX_Size() int

func (*LogConfig) XXX_Unmarshal

func (m *LogConfig) XXX_Unmarshal(b []byte) error

type MinerConfig

type MinerConfig struct {
	PocminerBackend      string   `protobuf:"bytes,1,opt,name=pocminer_backend,json=pocminerBackend,proto3" json:"pocminer_backend,omitempty"`
	SpacekeeperBackend   string   `protobuf:"bytes,2,opt,name=spacekeeper_backend,json=spacekeeperBackend,proto3" json:"spacekeeper_backend,omitempty"`
	MinerDir             string   `protobuf:"bytes,3,opt,name=miner_dir,json=minerDir,proto3" json:"miner_dir,omitempty"`
	MiningAddr           []string `protobuf:"bytes,4,rep,name=mining_addr,json=miningAddr,proto3" json:"mining_addr,omitempty"`
	Generate             bool     `protobuf:"varint,5,opt,name=generate,proto3" json:"generate,omitempty"`
	AllowSolo            bool     `protobuf:"varint,6,opt,name=allow_solo,json=allowSolo,proto3" json:"allow_solo,omitempty"`
	ProofDir             []string `protobuf:"bytes,7,rep,name=proof_dir,json=proofDir,proto3" json:"proof_dir,omitempty"`
	ProofList            string   `protobuf:"bytes,8,opt,name=proof_list,json=proofList,proto3" json:"proof_list,omitempty"`
	Plot                 bool     `protobuf:"varint,9,opt,name=plot,proto3" json:"plot,omitempty"`
	PrivatePassword      string   `protobuf:"bytes,10,opt,name=private_password,json=privatePassword,proto3" json:"private_password,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MinerConfig) Descriptor

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

func (*MinerConfig) GetAllowSolo

func (m *MinerConfig) GetAllowSolo() bool

func (*MinerConfig) GetGenerate

func (m *MinerConfig) GetGenerate() bool

func (*MinerConfig) GetMinerDir

func (m *MinerConfig) GetMinerDir() string

func (*MinerConfig) GetMiningAddr

func (m *MinerConfig) GetMiningAddr() []string

func (*MinerConfig) GetPlot

func (m *MinerConfig) GetPlot() bool

func (*MinerConfig) GetPocminerBackend

func (m *MinerConfig) GetPocminerBackend() string

func (*MinerConfig) GetPrivatePassword

func (m *MinerConfig) GetPrivatePassword() string

func (*MinerConfig) GetProofDir

func (m *MinerConfig) GetProofDir() []string

func (*MinerConfig) GetProofList

func (m *MinerConfig) GetProofList() string

func (*MinerConfig) GetSpacekeeperBackend

func (m *MinerConfig) GetSpacekeeperBackend() string

func (*MinerConfig) ProtoMessage

func (*MinerConfig) ProtoMessage()

func (*MinerConfig) Reset

func (m *MinerConfig) Reset()

func (*MinerConfig) String

func (m *MinerConfig) String() string

func (*MinerConfig) XXX_DiscardUnknown

func (m *MinerConfig) XXX_DiscardUnknown()

func (*MinerConfig) XXX_Marshal

func (m *MinerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MinerConfig) XXX_Merge

func (m *MinerConfig) XXX_Merge(src proto.Message)

func (*MinerConfig) XXX_Size

func (m *MinerConfig) XXX_Size() int

func (*MinerConfig) XXX_Unmarshal

func (m *MinerConfig) XXX_Unmarshal(b []byte) error

type NetworkConfig

type NetworkConfig struct {
	P2P                  *P2PConfig `protobuf:"bytes,1,opt,name=p2p,proto3" json:"p2p,omitempty"`
	Rpc                  *RPCConfig `protobuf:"bytes,2,opt,name=rpc,proto3" json:"rpc,omitempty"`
	XXX_NoUnkeyedLiteral struct{}   `json:"-"`
	XXX_unrecognized     []byte     `json:"-"`
	XXX_sizecache        int32      `json:"-"`
}

func (*NetworkConfig) Descriptor

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

func (*NetworkConfig) GetP2P

func (m *NetworkConfig) GetP2P() *P2PConfig

func (*NetworkConfig) GetRpc

func (m *NetworkConfig) GetRpc() *RPCConfig

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 (m *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 P2PConfig

type P2PConfig struct {
	Seeds                string   `protobuf:"bytes,1,opt,name=seeds,proto3" json:"seeds,omitempty"`
	AddPeer              []string `protobuf:"bytes,2,rep,name=add_peer,json=addPeer,proto3" json:"add_peer,omitempty"`
	SkipUpnp             bool     `protobuf:"varint,3,opt,name=skip_upnp,json=skipUpnp,proto3" json:"skip_upnp,omitempty"`
	HandshakeTimeout     uint32   `protobuf:"varint,4,opt,name=handshake_timeout,json=handshakeTimeout,proto3" json:"handshake_timeout,omitempty"`
	DialTimeout          uint32   `protobuf:"varint,5,opt,name=dial_timeout,json=dialTimeout,proto3" json:"dial_timeout,omitempty"`
	VaultMode            bool     `protobuf:"varint,6,opt,name=vault_mode,json=vaultMode,proto3" json:"vault_mode,omitempty"`
	ListenAddress        string   `protobuf:"bytes,7,opt,name=listen_address,json=listenAddress,proto3" json:"listen_address,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*P2PConfig) Descriptor

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

func (*P2PConfig) GetAddPeer

func (m *P2PConfig) GetAddPeer() []string

func (*P2PConfig) GetDialTimeout

func (m *P2PConfig) GetDialTimeout() uint32

func (*P2PConfig) GetHandshakeTimeout

func (m *P2PConfig) GetHandshakeTimeout() uint32

func (*P2PConfig) GetListenAddress

func (m *P2PConfig) GetListenAddress() string

func (*P2PConfig) GetSeeds

func (m *P2PConfig) GetSeeds() string

func (*P2PConfig) GetSkipUpnp

func (m *P2PConfig) GetSkipUpnp() bool

func (*P2PConfig) GetVaultMode

func (m *P2PConfig) GetVaultMode() bool

func (*P2PConfig) ProtoMessage

func (*P2PConfig) ProtoMessage()

func (*P2PConfig) Reset

func (m *P2PConfig) Reset()

func (*P2PConfig) String

func (m *P2PConfig) String() string

func (*P2PConfig) XXX_DiscardUnknown

func (m *P2PConfig) XXX_DiscardUnknown()

func (*P2PConfig) XXX_Marshal

func (m *P2PConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*P2PConfig) XXX_Merge

func (m *P2PConfig) XXX_Merge(src proto.Message)

func (*P2PConfig) XXX_Size

func (m *P2PConfig) XXX_Size() int

func (*P2PConfig) XXX_Unmarshal

func (m *P2PConfig) XXX_Unmarshal(b []byte) error

type RPCConfig

type RPCConfig struct {
	ApiPortGrpc          string   `protobuf:"bytes,1,opt,name=api_port_grpc,json=apiPortGrpc,proto3" json:"api_port_grpc,omitempty"`
	ApiPortHttp          string   `protobuf:"bytes,2,opt,name=api_port_http,json=apiPortHttp,proto3" json:"api_port_http,omitempty"`
	ApiWhitelist         []string `protobuf:"bytes,3,rep,name=api_whitelist,json=apiWhitelist,proto3" json:"api_whitelist,omitempty"`
	ApiAllowedLan        []string `protobuf:"bytes,4,rep,name=api_allowed_lan,json=apiAllowedLan,proto3" json:"api_allowed_lan,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*RPCConfig) Descriptor

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

func (*RPCConfig) GetApiAllowedLan

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

func (*RPCConfig) GetApiPortGrpc

func (m *RPCConfig) GetApiPortGrpc() string

func (*RPCConfig) GetApiPortHttp

func (m *RPCConfig) GetApiPortHttp() string

func (*RPCConfig) GetApiWhitelist

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

func (*RPCConfig) ProtoMessage

func (*RPCConfig) ProtoMessage()

func (*RPCConfig) Reset

func (m *RPCConfig) Reset()

func (*RPCConfig) String

func (m *RPCConfig) String() string

func (*RPCConfig) XXX_DiscardUnknown

func (m *RPCConfig) XXX_DiscardUnknown()

func (*RPCConfig) XXX_Marshal

func (m *RPCConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RPCConfig) XXX_Merge

func (m *RPCConfig) XXX_Merge(src proto.Message)

func (*RPCConfig) XXX_Size

func (m *RPCConfig) XXX_Size() int

func (*RPCConfig) XXX_Unmarshal

func (m *RPCConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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