Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Limit ¶
func Limit() middleware.Middleware
Limit middleware limits the requests made to elasticsearch for each permission.
Types ¶
type Ratelimiter ¶
Ratelimiter limits the number of requests made by a permission per category as well as per IP. Creating direct instances of RateLimiter should be avoided. ratelimiter.Instance returns the singleton instance of the Ratelimiter.
func Instance ¶
func Instance() *Ratelimiter
Instance returns the singleton instance of ratelimiter.
Click to show internal directories.
Click to hide internal directories.