Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2024 Changes in this version + var ErrInvalidRefreshIntervalValue = errors.New("invalid refresh interval value") + var ErrNilNetworkStatisticsProvider = errors.New("nil network statistics provider") + var ErrNilStateStatsHandler = errors.New("nil state statistics handler") + func GetRuntimeStatistics() []interface + func NewResourceMonitor(config config.Config, netStats NetworkStatisticsProvider) (*resourceMonitor, error) + func NewStateStatistics() *stateStatistics + type NetworkStatisticsProvider interface + EpochConfirmed func(epoch uint32, timestamp uint64) + IsInterfaceNil func() bool + TotalReceivedInCurrentEpoch func() string + TotalSentInCurrentEpoch func() string + type ResourceMonitorHandler interface + Close func() error + GenerateStatistics func() []interface{} + IsInterfaceNil func() bool + StartMonitoring func() + type SoftwareVersionChecker interface + Close func() error + IsInterfaceNil func() bool + StartCheckSoftwareVersion func()