Documentation ¶
Overview ¶
Package limiter
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLimitExceed is returned when the rate limiter is // triggered and the request is rejected due to limit exceeded. ErrLimitExceed = errors.New("rate limit exceeded") )
Functions ¶
This section is empty.
Types ¶
Directories ¶
Path | Synopsis |
---|---|
alone
|
|
bbr
Package bbr
|
Package bbr |
leakybucket
Reference uber ratelimit, the different is support no wait take func
|
Reference uber ratelimit, the different is support no wait take func |
slidingwindow
Package slidingwindow is a generated GoMock package.
|
Package slidingwindow is a generated GoMock package. |
distributed
|
|
leakybucket
Package leakybucket is a generated GoMock package.
|
Package leakybucket is a generated GoMock package. |
slidinglog
Package slidinglog is a generated GoMock package.
|
Package slidinglog is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.