Versions in this module Expand all Collapse all v0 v0.0.7 Dec 21, 2021 v0.0.6 Dec 7, 2021 Changes in this version + type Accumulator struct + func New(period time.Duration, clock Clock, method WindowingMethod) *Accumulator + func (acc *Accumulator) Accumulate(val float64) (Stats, error) + type Clock interface + Now func() time.Time + type Stats struct + Average float64 + Maximum float64 + Minimum float64 + PeriodDelta float64 + type WindowingMethod int + const CONSECUTIVE + const ROLLING