rolling_window

package
v0.0.0-...-b0c26fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RollingWindow

type RollingWindow interface {
	Add(int64)
	Count() int64
}

func New

func New(atomDuration time.Duration, windowSize int) RollingWindow

New Вернёт инициализированный счётчик atomDuration Минимальная единица времени windowSize Ширина окна в atomDuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL