request

package
v0.22.15-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 1 Imported by: 23

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Width

type Width struct {
	// Seats represents the number of seats associated with this request
	Seats uint
}

func DefaultWidthEstimator

func DefaultWidthEstimator(_ *http.Request) Width

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).

type WidthEstimatorFunc

type WidthEstimatorFunc func(*http.Request) Width

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) Width

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL