# Functions
FromHandlerContext extracts rejection details from the context after a request has been rejected.
FromTransportContext extracts rejection details from the context after a request has been rejected.
HandlerOptionCallback adds a callback to the middleware that is invoked each time the load shedder rejects a request.
HandlerOptionErrCodes determines which status codes result in errors that are reported to the load shedder.
NewHandlerContext inserts rejection details into the context after a request has been rejected.
No description provided by the author
NewTransportContext inserts rejection details into the context after a request has been rejected.
No description provided by the author
TransportOptionCallback sets the load shedding callback.
TransportOptionErrorCodes sets the HTTP status codes that should be considered errors.
# Structs
HandlerMiddleware struct represents an HTTP handler middleware that applies a load shedding policy to incoming requests.
TransportMiddleware is an HTTP client wrapper that applies a load shedding policy to outgoing requests.
# Type aliases
HandlerOption represents configuration for the http.Handler middleware.
No description provided by the author