Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidRefreshTimeInMilliseconds = errors.New("invalid refresh time in milliseconds")
ErrInvalidRefreshTimeInMilliseconds signals that an invalid time in milliseconds was provided
View Source
var ErrNilChanNodeIsStarting = errors.New("nil node starting channel")
ErrNilChanNodeIsStarting signals that a nil channel for node starting has been provided
View Source
var ErrNilGrid = errors.New("nil grid")
ErrNilGrid will be returned when a nil grid is returned
View Source
var ErrNilPresenterInterface = errors.New("nil presenter interface")
ErrNilPresenterInterface will be returned when a nil PresenterInterface is passed as parameter
Functions ¶
This section is empty.
Types ¶
type Presenter ¶
type Presenter interface { GetAppVersion() string GetNodeName() string GetPublicKeyBlockSign() string GetRedundancyLevel() int64 GetRedundancyIsMainActive() string GetShardId() uint64 GetChainID() string GetNodeType() string GetPeerType() string GetPeerSubType() string GetCountConsensus() uint64 GetCountConsensusAcceptedBlocks() uint64 GetCountLeader() uint64 GetCountAcceptedBlocks() uint64 GetIsSyncing() uint64 GetTxPoolLoad() uint64 GetNonce() uint64 GetProbableHighestNonce() uint64 GetSynchronizedRound() uint64 GetRoundTime() uint64 GetLiveValidatorNodes() uint64 GetConnectedNodes() uint64 GetNumConnectedPeers() uint64 GetIntraShardValidators() uint64 GetCurrentRound() uint64 GetNumTxInBlock() uint64 GetNumMiniBlocks() uint64 GetCrossCheckBlockHeight() string GetConsensusState() string GetConsensusRoundState() string GetCpuLoadPercent() uint64 GetMemLoadPercent() uint64 GetTotalMem() uint64 GetMemUsedByNode() uint64 GetNetworkRecvPercent() uint64 GetNetworkRecvBps() uint64 GetNetworkRecvBpsPeak() uint64 GetNetworkSentPercent() uint64 GetNetworkSentBps() uint64 GetNetworkSentBpsPeak() uint64 GetLogLines() []string GetNumTxProcessed() uint64 GetCurrentBlockHash() string GetEpochNumber() uint64 GetEpochInfo() (uint64, uint64, int, string) CalculateTimeToSynchronize(numMillisecondsRefreshTime int) string CalculateSynchronizationSpeed(numMillisecondsRefreshTime int) uint64 GetCurrentRoundTimestamp() uint64 GetBlockSize() uint64 GetNumShardHeadersInPool() uint64 GetNumShardHeadersProcessed() uint64 GetHighestFinalBlock() uint64 CheckSoftwareVersion() (bool, string) GetNetworkSentBytesInEpoch() uint64 GetNetworkReceivedBytesInEpoch() uint64 GetTrieSyncNumProcessedNodes() uint64 GetTrieSyncNumBytesReceived() uint64 InvalidateCache() IsInterfaceNil() bool }
Presenter defines the methods that return information about node
Click to show internal directories.
Click to hide internal directories.