package
1.4.3
Repository: https://github.com/hduhelp/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.

# Constants

Allowed means allowed state.
HitQuota means this request exactly hit the quota.
OverQuota means passed the quota.
Unknown means not initialized state.

# 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