Versions in this module Expand all Collapse all v0 v0.1.0 Mar 3, 2024 Changes in this version + const DefaultHashes + const DefaultRateHashes + const DefaultRateSlots + const DefaultSlots + type Estimator struct + func NewEstimatorWithSize[K Key](hashes, slots int) Estimator[K] + func NewEstimator[K Key]() Estimator[K] + func (e Estimator[K]) Get(key K) int64 + func (e Estimator[K]) Incr(key K) int64 + func (e Estimator[K]) IncrN(key K, n int64) int64 + func (e Estimator[K]) Reset() + type Key interface + type Rate struct + func NewRateWithSize[K Key](interval time.Duration, hashes, slots int) *Rate[K] + func NewRate[K Key](interval time.Duration) *Rate[K] + func (r *Rate[K]) Get(key K) int64 + func (r *Rate[K]) Observe(key K) int64 + func (r *Rate[K]) ObserveN(key K, n int64) int64