tokenbucket

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 NewTokenBucket added in v1.1.0

func NewTokenBucket(opts ...OptionFunc) *tokenBucketLimiter

Types

type OptionFunc added in v1.1.0

type OptionFunc func(o *options)

func WithBurst added in v1.1.0

func WithBurst(burst int) OptionFunc

func WithClock added in v1.1.0

func WithClock(clock clock.Clock) OptionFunc

func WithLimit added in v1.1.0

func WithLimit(limit float64) OptionFunc

Jump to

Keyboard shortcuts

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