package
0.0.0-20221205081027-fb1d94189521
Repository: https://github.com/ti-net2/apiserver.git
Documentation: pkg.go.dev

# Functions

BasicLongRunningRequestCheck returns true if the given request has one of the specified verbs or one of the specified subresources, or is a profiler request.
StartMaxInFlightWatermarkMaintenance starts the goroutines to observe and maintain watermarks for max-in-flight requests.
StartPriorityAndFairnessWatermarkMaintenance starts the goroutines to observe and maintain watermarks for priority-and-fairness requests.
WithContentType sets both the Content-Type and the X-Content-Type-Options (nosniff) header.
WithCORS is a simple CORS implementation that wraps an http Handler.
WithHSTS is a simple HSTS implementation that wraps an http Handler.
WithHTTPLogging enables logging of incoming requests.
WithMaxInFlightLimit limits the number of in-flight requests to buffer size of the passed in channel.
WithPanicRecovery wraps an http Handler to recover and log panics (except in the special case of http.ErrAbortHandler panics, which suppress logging).
WithPriorityAndFairness limits the number of in-flight requests in a fine-grained way.
WithProbabilisticGoaway returns an http.Handler that send GOAWAY probabilistically according to the given chance for HTTP2 requests.
WithRetryAfter rejects any incoming new request(s) with a 429 if the specified shutdownDelayDurationElapsedFn channel is closed It includes new request(s) on a new or an existing TCP connection Any new request(s) arriving after shutdownDelayDurationElapsedFn is closed are replied with a 429 and the following response headers: - 'Retry-After: N` (so client can retry after N seconds, hopefully on a new apiserver instance) - 'Connection: close': tear down the TCP connection TODO: is there a way to merge WithWaitGroup and this filter?.
WithTimeout returns an http.Handler that runs h with a timeout determined by timeoutFunc.
WithTimeoutForNonLongRunningRequests times out non-long-running requests after the time given by timeout.
WithWaitGroup adds all non long-running requests to wait group, which is used for graceful shutdown.

# Structs

PriorityAndFairnessClassification identifies the results of classification for API Priority and Fairness.

# Interfaces

GoawayDecider decides if server should send a GOAWAY.