Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RateLimiter ¶
func RateLimiter(next http.RoundTripper) http.RoundTripper
RateLimiter wraps the provided RoundTripper with a limiter allowing 10 requests/second/host.
It responds to HTTP 429 responses by automatically decreasing the rate.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.