Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlidingWindow ¶
type SlidingWindow struct {
// contains filtered or unexported fields
}
func NewSlidingWindow ¶
func NewSlidingWindow(timePerSlice time.Duration, winSize int64, bucketProvider func() Bucket) *SlidingWindow
func (*SlidingWindow) Clear ¶
func (s *SlidingWindow) Clear()
func (*SlidingWindow) GetBuckets ¶
func (s *SlidingWindow) GetBuckets() []Bucket
func (*SlidingWindow) Update ¶
func (s *SlidingWindow) Update(values ...any)
Click to show internal directories.
Click to hide internal directories.