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 ¶
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 ¶
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
Click to show internal directories.
Click to hide internal directories.