Documentation
¶
Index ¶
Constants ¶
View Source
const ( // HeaderRateLimitLimit, HeaderRateLimitRemaining, and HeaderRateLimitReset // are the recommended return header values from IETF on rate limiting. Reset // is in UTC time. HeaderRateLimitLimit = "X-RateLimit-Limit" HeaderRateLimitRemaining = "X-RateLimit-Remaining" HeaderRateLimitReset = "X-RateLimit-Reset" // HeaderRetryAfter is the header used to indicate when a client should retry // requests (when the rate limit expires), in UTC time. HeaderRetryAfter = "Retry-After" )
Variables ¶
This section is empty.
Functions ¶
func Throttle ¶
func Throttle(name string) httpcontract.Middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.