//
pkg.gl
Category
github.com/cockroachdb/pebble
internal
rate
package
1.1.4
Repository:
https://github.com/cockroachdb/pebble.git
Documentation:
pkg.go.dev
Overview
Versions
2
Dependencies
3
Dependents
3
Files
63 SLOC
#
Functions
NewLimiter
NewLimiter returns a new Limiter that allows events up to rate r and permits bursts of at most b tokens.
NewLimiterWithCustomTime
NewLimiterWithCustomTime returns a new Limiter that allows events up to rate r and permits bursts of at most b tokens.
#
Structs
Limiter
A Limiter controls how frequently events are allowed to happen.