Documentation ¶
Overview ¶
DEPRECATED: This package is deprecated and will be removed in a future release.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigRateLimits ¶
func ConfigRateLimits(limit float64)
ConfigRateLimits configures rate limits used in app.
Should be called only once while application starting process.
func UserRateLimit ¶
func UserRateLimit(handler http.HandlerFunc) http.HandlerFunc
UserRateLimit is a middleware that performs rate-limiting given request handler function.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.