runstatus

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

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 Challengest interface {
	SetLastChallenge(blocknumber uint32)
	SetIdleChallenging(st bool)
	SetServiceChallenging(st bool)

	GetLastChallenge() uint32
	GetIdleChallenging() bool
	GetServiceChallenging() bool
}

type IdleSt

type IdleSt struct {
	// contains filtered or unexported fields
}

func NewIdleSt

func NewIdleSt() *IdleSt

func (*IdleSt) GetCertifyingIdle

func (p *IdleSt) GetCertifyingIdle() bool

func (*IdleSt) GetGeneratingIdle

func (p *IdleSt) GetGeneratingIdle() bool

func (*IdleSt) SetCertifyingIdle

func (p *IdleSt) SetCertifyingIdle(st bool)

func (*IdleSt) SetGeneratingIdle

func (p *IdleSt) SetGeneratingIdle(st bool)

type Idlest

type Idlest interface {
	SetGeneratingIdle(st bool)
	SetCertifyingIdle(st bool)

	GetGeneratingIdle() bool
	GetCertifyingIdle() bool
}

type MinerSt

type MinerSt struct {
	// contains filtered or unexported fields
}

func NewMinerSt

func NewMinerSt() *MinerSt

func (*MinerSt) GetEarningsAcc

func (m *MinerSt) GetEarningsAcc() string

func (*MinerSt) GetMinerSpaceInfo

func (m *MinerSt) GetMinerSpaceInfo() (uint64, uint64, uint64, uint64)

func (*MinerSt) GetRegister

func (m *MinerSt) GetRegister() bool

func (*MinerSt) GetSignAcc

func (m *MinerSt) GetSignAcc() string

func (*MinerSt) GetStakingAcc

func (m *MinerSt) GetStakingAcc() string

func (*MinerSt) GetState

func (m *MinerSt) GetState() string

func (*MinerSt) SetEarningsAcc

func (m *MinerSt) SetEarningsAcc(acc string)

func (*MinerSt) SetRegister

func (m *MinerSt) SetRegister(register bool)

func (*MinerSt) SetSignAcc

func (m *MinerSt) SetSignAcc(acc string)

func (*MinerSt) SetSpaceInfo

func (m *MinerSt) SetSpaceInfo(decSpace, validSpace, usedSpace, lockedSpace uint64)

func (*MinerSt) SetStakingAcc

func (m *MinerSt) SetStakingAcc(acc string)

func (*MinerSt) SetState

func (m *MinerSt) SetState(st string)

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 (p *ProcessSt) GetCheckPois() bool

func (*ProcessSt) GetComAddr

func (p *ProcessSt) GetComAddr() string

func (*ProcessSt) GetCpucores

func (p *ProcessSt) GetCpucores() int

func (*ProcessSt) GetPID

func (p *ProcessSt) GetPID() int

func (*ProcessSt) SetCheckPois added in v0.8.2

func (p *ProcessSt) SetCheckPois(st bool)

func (*ProcessSt) SetComAddr

func (p *ProcessSt) SetComAddr(addr string)

func (*ProcessSt) SetCpucores

func (p *ProcessSt) SetCpucores(cores int)

func (*ProcessSt) SetPID

func (p *ProcessSt) SetPID(pid int)

type Processst

type Processst interface {
	SetPID(pid int)
	SetCpucores(cores int)
	SetComAddr(addr string)
	SetCheckPois(st bool)

	GetPID() int
	GetCpucores() int
	GetComAddr() string
	GetCheckPois() bool
}

type RpcSt

type RpcSt struct {
	// contains filtered or unexported fields
}

func NewRpcSt

func NewRpcSt() *RpcSt

func (*RpcSt) GetAndSetRpcConnecting

func (r *RpcSt) GetAndSetRpcConnecting() bool

func (*RpcSt) GetCurrentRpc

func (r *RpcSt) GetCurrentRpc() string

func (*RpcSt) GetCurrentRpcst

func (r *RpcSt) GetCurrentRpcst() bool

func (*RpcSt) GetRpcConnecting

func (r *RpcSt) GetRpcConnecting() bool

func (*RpcSt) GetStartTime added in v0.8.2

func (r *RpcSt) GetStartTime() string

func (*RpcSt) SetCurrentRpc

func (r *RpcSt) SetCurrentRpc(rpc string)

func (*RpcSt) SetCurrentRpcst

func (r *RpcSt) SetCurrentRpcst(st bool)

func (*RpcSt) SetRpcConnecting

func (r *RpcSt) SetRpcConnecting(st bool)

func (*RpcSt) SetStartTime added in v0.8.2

func (r *RpcSt) SetStartTime(t string)

type Rpcst

type Rpcst interface {
	SetCurrentRpc(rpc string)
	SetStartTime(t string)
	SetCurrentRpcst(st bool)
	SetRpcConnecting(st bool)

	GetCurrentRpc() string
	GetStartTime() string
	GetCurrentRpcst() bool
	GetRpcConnecting() bool
	GetAndSetRpcConnecting() bool
}

type Runstatus

type Runstatus interface {
	Rpcst
	Processst
	Challengest
	Minerst
	Idlest
}

func NewRunstatus

func NewRunstatus() Runstatus

Jump to

Keyboard shortcuts

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