apiserverk8s.io/apiserver/pkg/util/flowcontrol/request Index | Files

package request

import "k8s.io/apiserver/pkg/util/flowcontrol/request"

Index

Functions

func DefaultWidthEstimator

func DefaultWidthEstimator(_ *http.Request) uint

DefaultWidthEstimator returns returns '1' as the "width" of the given request.

TODO: when we plumb in actual "width" handling for different

type of request(s) this function will iterate through a chain
of widthEstimator instance(s).

Types

type WidthEstimatorFunc

type WidthEstimatorFunc func(*http.Request) uint

WidthEstimatorFunc returns the estimated "width" of a given request. This function will be used by the Priority & Fairness filter to estimate the "width" of incoming requests.

func (WidthEstimatorFunc) EstimateWidth

func (e WidthEstimatorFunc) EstimateWidth(r *http.Request) uint

Source Files

width.go

Version
v0.22.0-beta.0
Published
Jun 22, 2021
Platform
js/wasm
Imports
1 packages
Last checked
now

Tools for package owners.