package
0.0.0-20240201022239-0ae679bc1fb1
Repository: https://github.com/peakchen/go-zero.git
Documentation: pkg.go.dev
# Functions
Align returns a func to customize a PeriodLimit with alignment.
NewPeriodLimit returns a PeriodLimit with given parameters.
NewTokenLimiter returns a new TokenLimiter that allows events up to rate and permits bursts of at most burst tokens.
# Variables
ErrUnknownCode is an error that represents unknown status code.
# Structs
No description provided by the author
A TokenLimiter controls how frequently events are allowed to happen with in one second.
# Type aliases
No description provided by the author