Documentation ¶
Index ¶
- type AppConfig
- func (*AppConfig) Descriptor() ([]byte, []int)
- func (m *AppConfig) GetCpuProfile() string
- func (m *AppConfig) GetHostname() string
- func (m *AppConfig) GetProfile() string
- func (m *AppConfig) GetPubPassword() 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 (m *AppConfig) XXX_Merge(src proto.Message)
- func (m *AppConfig) XXX_Size() int
- func (m *AppConfig) XXX_Unmarshal(b []byte) error
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetApp() *AppConfig
- func (m *Config) GetDb() *DataConfig
- func (m *Config) GetLog() *LogConfig
- func (m *Config) GetMiner() *MinerConfig
- func (m *Config) GetNetwork() *NetworkConfig
- 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 (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type DataConfig
- func (*DataConfig) Descriptor() ([]byte, []int)
- func (m *DataConfig) GetDataDir() string
- func (m *DataConfig) GetDbType() string
- func (*DataConfig) ProtoMessage()
- func (m *DataConfig) Reset()
- func (m *DataConfig) String() string
- func (m *DataConfig) XXX_DiscardUnknown()
- func (m *DataConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataConfig) XXX_Merge(src proto.Message)
- func (m *DataConfig) XXX_Size() int
- func (m *DataConfig) XXX_Unmarshal(b []byte) error
- type LogConfig
- func (*LogConfig) Descriptor() ([]byte, []int)
- func (m *LogConfig) GetDisableCprint() bool
- func (m *LogConfig) GetLogDir() string
- func (m *LogConfig) GetLogLevel() string
- func (*LogConfig) ProtoMessage()
- func (m *LogConfig) Reset()
- func (m *LogConfig) String() string
- func (m *LogConfig) XXX_DiscardUnknown()
- func (m *LogConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogConfig) XXX_Merge(src proto.Message)
- func (m *LogConfig) XXX_Size() int
- func (m *LogConfig) XXX_Unmarshal(b []byte) error
- type MinerConfig
- func (*MinerConfig) Descriptor() ([]byte, []int)
- func (m *MinerConfig) GetAllowSolo() bool
- func (m *MinerConfig) GetGenerate() bool
- func (m *MinerConfig) GetMinerDir() string
- func (m *MinerConfig) GetMiningAddr() []string
- func (m *MinerConfig) GetPlot() bool
- func (m *MinerConfig) GetPocminerBackend() string
- func (m *MinerConfig) GetPrivatePassword() string
- func (m *MinerConfig) GetProofDir() []string
- func (m *MinerConfig) GetProofList() string
- func (m *MinerConfig) GetSpacekeeperBackend() string
- func (*MinerConfig) ProtoMessage()
- func (m *MinerConfig) Reset()
- func (m *MinerConfig) String() string
- func (m *MinerConfig) XXX_DiscardUnknown()
- func (m *MinerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MinerConfig) XXX_Merge(src proto.Message)
- func (m *MinerConfig) XXX_Size() int
- func (m *MinerConfig) XXX_Unmarshal(b []byte) error
- type NetworkConfig
- func (*NetworkConfig) Descriptor() ([]byte, []int)
- func (m *NetworkConfig) GetP2P() *P2PConfig
- func (m *NetworkConfig) GetRpc() *RPCConfig
- 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 (m *NetworkConfig) XXX_Merge(src proto.Message)
- func (m *NetworkConfig) XXX_Size() int
- func (m *NetworkConfig) XXX_Unmarshal(b []byte) error
- type P2PConfig
- func (*P2PConfig) Descriptor() ([]byte, []int)
- func (m *P2PConfig) GetAddPeer() []string
- func (m *P2PConfig) GetDialTimeout() uint32
- func (m *P2PConfig) GetHandshakeTimeout() uint32
- func (m *P2PConfig) GetListenAddress() string
- func (m *P2PConfig) GetSeeds() string
- func (m *P2PConfig) GetSkipUpnp() bool
- func (m *P2PConfig) GetVaultMode() bool
- func (*P2PConfig) ProtoMessage()
- func (m *P2PConfig) Reset()
- func (m *P2PConfig) String() string
- func (m *P2PConfig) XXX_DiscardUnknown()
- func (m *P2PConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *P2PConfig) XXX_Merge(src proto.Message)
- func (m *P2PConfig) XXX_Size() int
- func (m *P2PConfig) XXX_Unmarshal(b []byte) error
- type RPCConfig
- func (*RPCConfig) Descriptor() ([]byte, []int)
- func (m *RPCConfig) GetApiAllowedLan() []string
- func (m *RPCConfig) GetApiPortGrpc() string
- func (m *RPCConfig) GetApiPortHttp() string
- func (m *RPCConfig) GetApiWhitelist() []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 (m *RPCConfig) XXX_Merge(src proto.Message)
- func (m *RPCConfig) XXX_Size() int
- func (m *RPCConfig) XXX_Unmarshal(b []byte) error
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) GetCpuProfile ¶
func (*AppConfig) GetHostname ¶
func (*AppConfig) GetProfile ¶
func (*AppConfig) GetPubPassword ¶
func (*AppConfig) ProtoMessage ¶
func (*AppConfig) ProtoMessage()
func (*AppConfig) XXX_DiscardUnknown ¶
func (m *AppConfig) XXX_DiscardUnknown()
func (*AppConfig) XXX_Marshal ¶
func (*AppConfig) XXX_Unmarshal ¶
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 (*Config) Descriptor ¶
func (*Config) GetDb ¶
func (m *Config) GetDb() *DataConfig
func (*Config) GetMiner ¶
func (m *Config) GetMiner() *MinerConfig
func (*Config) GetNetwork ¶
func (m *Config) GetNetwork() *NetworkConfig
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
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) GetDisableCprint ¶
func (*LogConfig) GetLogLevel ¶
func (*LogConfig) ProtoMessage ¶
func (*LogConfig) ProtoMessage()
func (*LogConfig) XXX_DiscardUnknown ¶
func (m *LogConfig) XXX_DiscardUnknown()
func (*LogConfig) XXX_Marshal ¶
func (*LogConfig) XXX_Unmarshal ¶
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) GetAddPeer ¶
func (*P2PConfig) GetDialTimeout ¶
func (*P2PConfig) GetHandshakeTimeout ¶
func (*P2PConfig) GetListenAddress ¶
func (*P2PConfig) GetSkipUpnp ¶
func (*P2PConfig) GetVaultMode ¶
func (*P2PConfig) ProtoMessage ¶
func (*P2PConfig) ProtoMessage()
func (*P2PConfig) XXX_DiscardUnknown ¶
func (m *P2PConfig) XXX_DiscardUnknown()
func (*P2PConfig) XXX_Marshal ¶
func (*P2PConfig) XXX_Unmarshal ¶
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) GetApiAllowedLan ¶
func (*RPCConfig) GetApiPortGrpc ¶
func (*RPCConfig) GetApiPortHttp ¶
func (*RPCConfig) GetApiWhitelist ¶
func (*RPCConfig) ProtoMessage ¶
func (*RPCConfig) ProtoMessage()
func (*RPCConfig) XXX_DiscardUnknown ¶
func (m *RPCConfig) XXX_DiscardUnknown()
func (*RPCConfig) XXX_Marshal ¶
func (*RPCConfig) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.