Versions in this module Expand all Collapse all v1 v1.0.1 Feb 9, 2021 Changes in this version + type Bucket struct + Count int64 + Sum float64 + type RollingWindow struct + func NewRollingWindow(size int, interval time.Duration, opts ...RollingWindowOption) *RollingWindow + func (rw *RollingWindow) Add(v float64) + func (rw *RollingWindow) Reduce(fn func(b *Bucket)) + type RollingWindowOption func(rollingWindow *RollingWindow) + func IgnoreCurrentBucket() RollingWindowOption