Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Quota ¶
type Quota struct {
// contains filtered or unexported fields
}
Quota implements a simple IP-based rate limiter. Each set of incoming IP addresses with the same low-order byte gets events per second. Information is kept in an LRU cache of size maxEntries.
Click to show internal directories.
Click to hide internal directories.