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
Click to show internal directories.
Click to hide internal directories.