Documentation ¶
Overview ¶
Package ratelimit provides the ratelimit implement by token bucket
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitTokenBucket ¶
func InitTokenBucket(capacity int32) *tokenBucket
InitTokenBucket create a new token bucket with given capacity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.