Versions in this module Expand all Collapse all v1 v1.4.9 Jul 5, 2021 v1.4.5 Jul 5, 2021 Changes in this version + type Manager interface + CalculateUptime func(nodeID ids.ShortID) (time.Duration, time.Time, error) + CalculateUptimePercent func(nodeID ids.ShortID, startTime time.Time) (float64, error) + Connect func(nodeID ids.ShortID) error + Disconnect func(nodeID ids.ShortID) error + IsConnected func(nodeID ids.ShortID) bool + Shutdown func(nodeIDs []ids.ShortID) error + StartTracking func(nodeIDs []ids.ShortID) error + func NewManager(state State) Manager + type State interface + GetUptime func(nodeID ids.ShortID) (upDuration time.Duration, lastUpdated time.Time, err error) + SetUptime func(nodeID ids.ShortID, upDuration time.Duration, lastUpdated time.Time) error + type TestManager interface + SetTime func(time.Time)