Versions in this module Expand all Collapse all v0 v0.0.2 May 17, 2022 Changes in this version + type Tracker struct + func NewTracker(caps map[uint64]float64, rtt time.Duration) *Tracker + func (t *Tracker) Capacity(kind uint64, targetRTT time.Duration) int + func (t *Tracker) Update(kind uint64, elapsed time.Duration, items int) + type Trackers struct + OverrideTTLLimit time.Duration + func NewTrackers(log log.Logger) *Trackers + func (t *Trackers) Capacity(id string, kind uint64, targetRTT time.Duration) int + func (t *Trackers) MeanCapacities() map[uint64]float64 + func (t *Trackers) MedianRoundTrip() time.Duration + func (t *Trackers) TargetRoundTrip() time.Duration + func (t *Trackers) TargetTimeout() time.Duration + func (t *Trackers) Track(id string, tracker *Tracker) error + func (t *Trackers) Untrack(id string) error + func (t *Trackers) Update(id string, kind uint64, elapsed time.Duration, items int) v0.0.2-rc May 18, 2022