Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeaderXRateLimitLimit = "X-RateLimit-Limit" HeaderXRateLimitRemaining = "X-RateLimit-Remaining" HeaderXRateLimitReset = "X-RateLimit-Reset" )
Variables ¶
This section is empty.
Functions ¶
func ExtractorFuncByURLPath ¶
func RateLimit ¶
func RateLimit(cfg *RateLimitConfig) echo.MiddlewareFunc
Types ¶
type RateLimitConfig ¶
type RateLimitConfig struct { ExtractorFunc func(interface{}) (string, error) Impl ratelimiting.RateLimitingInf }
Click to show internal directories.
Click to hide internal directories.