Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + func Add64(a, b uint64) (uint64, error) + func Diff64(a, b uint64) uint64 + func Max64(max uint64, nums ...uint64) uint64 + func Min(min int, nums ...int) int + func Min64(min uint64, nums ...uint64) uint64 + func Mul64(a, b uint64) (uint64, error) + func Sub64(a, b uint64) (uint64, error) + type Averager interface + Observe func(value float64, currentTime time.Time) + Read func() float64 + func NewAverager(initialPrediction float64, halflife time.Duration, currentTime time.Time) Averager + func NewSyncAverager(averager Averager) Averager + type AveragerHeap interface + Add func(nodeID ids.NodeID, averager Averager) (Averager, bool) + Len func() int + Peek func() (ids.NodeID, Averager, bool) + Pop func() (ids.NodeID, Averager, bool) + Remove func(nodeID ids.NodeID) (Averager, bool) + func NewMaxAveragerHeap() AveragerHeap + func NewMinAveragerHeap() AveragerHeap v1.0.0-alpha Nov 22, 2022