Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Number of events to pass to the crane rate limiter to match the // AR api limits: // https://github.com/kubernetes/registry.k8s.io/issues/153#issuecomment-1460913153 // bentheelder: (83*60=4980) // Temp: We are temporarily dropping this from the max of 83 to // two thirds while the rate limiter is instrumented everywhere. MaxEvents = 50 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoundTripper ¶
type RoundTripper struct {
// contains filtered or unexported fields
}
RoundTripper wraps an http.RoundTripper with rate limiting
var Limiter *RoundTripper
func NewRoundTripper ¶
func NewRoundTripper(limit rate.Limit) *RoundTripper
Click to show internal directories.
Click to hide internal directories.