Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter interface { // Check check can process Check(ctx context.Context, r Resource) Entry // SetLimit set a new limit SetLimit(ctx context.Context, r Resource) // SetBurst set a new burst SetBurst(ctx context.Context, r Resource) // SetWindow set a new window SetWindow(ctx context.Context, r Resource) }
Directories ¶
Path | Synopsis |
---|---|
alone
|
|
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.