vlimit

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Every

func Every(interval time.Duration) rate.Limit

Every converts a minimum time interval between events to a Limit.

func New

func New(r rate.Limit, b int) *rate.Limiter

New returns a new Limiter that allows events up to rate r and permits bursts of at most b tokens.

Types

This section is empty.

Jump to

Keyboard shortcuts

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