leakybucket

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLeakyBucket

func NewLeakyBucket(getClient func() *redis.Client, opts ...OptionFunc) (*leakyBucket, error)

Types

type OptionFunc added in v1.1.0

type OptionFunc func(o *options)

func WithClock

func WithClock(clock clock.Clock) OptionFunc

func WithVolume added in v1.1.0

func WithVolume(volume int) OptionFunc

Jump to

Keyboard shortcuts

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