Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextRoundTripper ¶
type ContextRoundTripper struct { Transport http.RoundTripper Ctx context.Context }
type RateLimiters ¶
type RateLimiters struct {
RPS, Burst int
// contains filtered or unexported fields
}
func (*RateLimiters) RoundTripper ¶
func (limiters *RateLimiters) RoundTripper(rt http.RoundTripper, host string) http.RoundTripper
Limit returns a RoundTripper for a particular host. We expect to do a number of requests to a particular host at a time.
type RoundTripRateLimiter ¶
type RoundTripRateLimiter struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.