Versions in this module Expand all Collapse all v1 v1.14.2 Aug 2, 2025 Changes in this version + type CPUTracker interface + Len func() int + TimeUntilUsage func(time.Time, time.Duration, float64) time.Duration + Utilization func(time.Time, time.Duration) float64 + UtilizeTime func(time.Time, time.Time) + type Peers interface + Connected func(nodeID ids.NodeID, nodeVersion *version.Application) + ConnectedSubnets func() set.Set[ids.ID] + Disconnected func(nodeID ids.NodeID) + Peers func() set.Set[ids.NodeID] + func NewPeers() Peers + type ResourceTracker interface + CPUTracker func(ids.NodeID) CPUTracker + DiskTracker func(ids.NodeID) CPUTracker + StartProcessing func(nodeID ids.NodeID, time time.Time) + StopProcessing func(nodeID ids.NodeID, time time.Time) + func NewResourceTracker(registry interface{}, usage interface{}, factory interface{}, ...) (ResourceTracker, error) + type StartupTracker interface + OnBootstrapFinished func() + OnBootstrapStarted func() + ShouldStart func() bool + Started func() bool + StartingTime func() (time.Time, bool) + type Targeter interface + AdjustTargets func() + func NewTargeter(log interface{}, config *TargeterConfig, validators interface{}, ...) Targeter + type TargeterConfig struct + DecreaseRatio float64 + IncreaseRatio float64 + MaxNonVdrNodeUsage float64 + MaxNonVdrUsage float64 + MinimumConnectedValidatorProportion float64 + TargetUsage float64 + TargetUtilization float64 + VdrAlloc int64 Other modules containing this package github.com/luxfi/node/v2