Documentation
¶
Overview ¶
Package rate provides a rate limiter. It implements a classic token bucket algorithm, which can achieve functions such as http api speed limit and network bandwidth speed limit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limits ¶
type Limits struct {
// contains filtered or unexported fields
}
Limits represents a rate limiter that controls resource allocation over time.
Click to show internal directories.
Click to hide internal directories.