const retryAfter …
const inflightUsageMetricUpdatePeriod …
var nonMutatingRequestVerbs …
var watchVerbs …
func handleError(w http.ResponseWriter, r *http.Request, err error) { … }
type requestWatermark …
func (w *requestWatermark) recordMutating(mutatingVal int) { … }
func (w *requestWatermark) recordReadOnly(readOnlyVal int) { … }
var watermark …
func startWatermarkMaintenance(watermark *requestWatermark, stopCh <-chan struct{ … }
var initMaxInFlightOnce …
func initMaxInFlight(nonMutatingLimit, mutatingLimit int) { … }
func WithMaxInFlightLimit(
handler http.Handler,
nonMutatingLimit int,
mutatingLimit int,
longRunningRequestCheck apirequest.LongRunningRequestCheck,
) http.Handler { … }
func StartMaxInFlightWatermarkMaintenance(stopCh <-chan struct{ … }