Documentation
¶
Index ¶
- Constants
- type ChallengeSt
- func (c *ChallengeSt) GetIdleChallenging() bool
- func (c *ChallengeSt) GetLastChallenge() uint32
- func (c *ChallengeSt) GetServiceChallenging() bool
- func (c *ChallengeSt) SetIdleChallenging(st bool)
- func (c *ChallengeSt) SetLastChallenge(blocknumber uint32)
- func (c *ChallengeSt) SetServiceChallenging(st bool)
- type Challengest
- type IdleSt
- type Idlest
- type MinerSt
- func (m *MinerSt) GetEarningsAcc() string
- func (m *MinerSt) GetMinerSpaceInfo() (uint64, uint64, uint64, uint64)
- func (m *MinerSt) GetRegister() bool
- func (m *MinerSt) GetSignAcc() string
- func (m *MinerSt) GetStakingAcc() string
- func (m *MinerSt) GetState() string
- func (m *MinerSt) SetEarningsAcc(acc string)
- func (m *MinerSt) SetRegister(register bool)
- func (m *MinerSt) SetSignAcc(acc string)
- func (m *MinerSt) SetSpaceInfo(decSpace, validSpace, usedSpace, lockedSpace uint64)
- func (m *MinerSt) SetStakingAcc(acc string)
- func (m *MinerSt) SetState(st string)
- type Minerst
- type ProcessSt
- func (p *ProcessSt) GetCheckPois() bool
- func (p *ProcessSt) GetComAddr() string
- func (p *ProcessSt) GetCpucores() int
- func (p *ProcessSt) GetPID() int
- func (p *ProcessSt) SetCheckPois(st bool)
- func (p *ProcessSt) SetComAddr(addr string)
- func (p *ProcessSt) SetCpucores(cores int)
- func (p *ProcessSt) SetPID(pid int)
- type Processst
- type RpcSt
- func (r *RpcSt) GetAndSetRpcConnecting() bool
- func (r *RpcSt) GetCurrentRpc() string
- func (r *RpcSt) GetCurrentRpcst() bool
- func (r *RpcSt) GetRpcConnecting() bool
- func (r *RpcSt) GetStartTime() string
- func (r *RpcSt) SetCurrentRpc(rpc string)
- func (r *RpcSt) SetCurrentRpcst(st bool)
- func (r *RpcSt) SetRpcConnecting(st bool)
- func (r *RpcSt) SetStartTime(t string)
- type Rpcst
- type Runstatus
Constants ¶
View Source
const ( St_Normal uint8 = iota St_Warning St_Error )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChallengeSt ¶
type ChallengeSt struct {
// contains filtered or unexported fields
}
func NewChallengeSt ¶
func NewChallengeSt() *ChallengeSt
func (*ChallengeSt) GetIdleChallenging ¶
func (c *ChallengeSt) GetIdleChallenging() bool
func (*ChallengeSt) GetLastChallenge ¶
func (c *ChallengeSt) GetLastChallenge() uint32
func (*ChallengeSt) GetServiceChallenging ¶
func (c *ChallengeSt) GetServiceChallenging() bool
func (*ChallengeSt) SetIdleChallenging ¶
func (c *ChallengeSt) SetIdleChallenging(st bool)
func (*ChallengeSt) SetLastChallenge ¶
func (c *ChallengeSt) SetLastChallenge(blocknumber uint32)
func (*ChallengeSt) SetServiceChallenging ¶
func (c *ChallengeSt) SetServiceChallenging(st bool)
type Challengest ¶
type IdleSt ¶
type IdleSt struct {
// contains filtered or unexported fields
}
func (*IdleSt) GetCertifyingIdle ¶
func (*IdleSt) GetGeneratingIdle ¶
func (*IdleSt) SetCertifyingIdle ¶
func (*IdleSt) SetGeneratingIdle ¶
type MinerSt ¶
type MinerSt struct {
// contains filtered or unexported fields
}
func NewMinerSt ¶
func NewMinerSt() *MinerSt
func (*MinerSt) GetEarningsAcc ¶
func (*MinerSt) GetMinerSpaceInfo ¶
func (*MinerSt) GetRegister ¶
func (*MinerSt) GetSignAcc ¶
func (*MinerSt) GetStakingAcc ¶
func (*MinerSt) SetEarningsAcc ¶
func (*MinerSt) SetRegister ¶
func (*MinerSt) SetSignAcc ¶
func (*MinerSt) SetSpaceInfo ¶
func (*MinerSt) SetStakingAcc ¶
type Minerst ¶
type Minerst interface {
SetSignAcc(acc string)
SetStakingAcc(acc string)
SetEarningsAcc(acc string)
SetState(st string)
// declaration_space, idle_space, service_space, locked_space
SetSpaceInfo(decSpace, validSpace, usedSpace, lockedSpace uint64)
SetRegister(register bool)
GetSignAcc() string
GetStakingAcc() string
GetEarningsAcc() string
GetState() string
// declaration_space, idle_space, service_space, locked_space
GetMinerSpaceInfo() (uint64, uint64, uint64, uint64)
GetRegister() bool
}
type ProcessSt ¶
type ProcessSt struct {
// contains filtered or unexported fields
}
func NewProcessSt ¶
func NewProcessSt() *ProcessSt
func (*ProcessSt) GetCheckPois ¶ added in v0.8.2
func (*ProcessSt) GetComAddr ¶
func (*ProcessSt) GetCpucores ¶
func (*ProcessSt) SetCheckPois ¶ added in v0.8.2
func (*ProcessSt) SetComAddr ¶
func (*ProcessSt) SetCpucores ¶
type RpcSt ¶
type RpcSt struct {
// contains filtered or unexported fields
}
func (*RpcSt) GetAndSetRpcConnecting ¶
func (*RpcSt) GetCurrentRpc ¶
func (*RpcSt) GetCurrentRpcst ¶
func (*RpcSt) GetRpcConnecting ¶
func (*RpcSt) GetStartTime ¶ added in v0.8.2
func (*RpcSt) SetCurrentRpc ¶
func (*RpcSt) SetCurrentRpcst ¶
func (*RpcSt) SetRpcConnecting ¶
func (*RpcSt) SetStartTime ¶ added in v0.8.2
type Runstatus ¶
type Runstatus interface {
Rpcst
Processst
Challengest
Minerst
Idlest
}
func NewRunstatus ¶
func NewRunstatus() Runstatus
Click to show internal directories.
Click to hide internal directories.