slidingwindow

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSlidingWindow

func NewSlidingWindow(opts ...OptionFunc) *slidingWindow

Types

type OptionFunc added in v1.1.0

type OptionFunc func(o *options)

func WithClock

func WithClock(clock clock.Clock) OptionFunc

func WithLimit added in v1.1.0

func WithLimit(limit int) OptionFunc

func WithWindow added in v1.1.0

func WithWindow(window time.Duration) OptionFunc

Jump to

Keyboard shortcuts

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