Documentation
¶
Overview ¶
Package tracker is DEPRECATED. Resource tracking belongs in the node's network layer.
Migration:
OLD: import "github.com/luxfi/consensus/networking/tracker" NEW: import "github.com/luxfi/node/network/tracker"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDeprecated = errors.New("tracker package should be in github.com/luxfi/node/network/tracker")
Functions ¶
This section is empty.
Types ¶
type CPUTracker ¶
type DiskTracker ¶
type ResourceTracker ¶
type ResourceTracker interface {
StartProcessing(nodeID ids.NodeID, time time.Time)
StopProcessing(nodeID ids.NodeID, time time.Time)
CPUTracker() CPUTracker
DiskTracker() DiskTracker
}
func NewResourceTracker ¶
func NewResourceTracker( cpuHalflife time.Duration, diskHalflife time.Duration, ) (ResourceTracker, error)
NewResourceTracker creates a new resource tracker
Directories
¶
| Path | Synopsis |
|---|---|
|
Package trackermock provides mock implementations for connection tracking
|
Package trackermock provides mock implementations for connection tracking |
Click to show internal directories.
Click to hide internal directories.