# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
GetCanonizedHost plucks the canonized host key from the request of a context that was put through the middleware.
NegroniRecoverHandler recovers from a panic in negroni handlers.
NewBackendMetricsMiddleware creates a new metrics middleware for a Backend.
NewCircuitBreaker returns a new CircuitBreaker.
NewCircuitBreakerOptions returns a new CircuitBreakerOption.
NewEmptyBackendHandler creates a new EmptyBackendHandler instance.
NewEntryPointMetricsMiddleware creates a new metrics middleware for an Entrypoint.
NewHandlerSwitcher builds a new instance of HandlerSwitcher.
NewHeaderFromStruct constructs a new header instance from supplied frontend header struct.
NewIPWhiteLister builds a new IPWhiteLister given a list of CIDR-Strings to whitelist.
NewMetricsRetryListener instantiates a MetricsRetryListener with the given retryMetrics.
NewReplacePathRegexHandler returns a new ReplacePathRegex.
NewRetry returns a new Retry instance.
NewRoutes return a Routes based on the given router.
NewSecure constructs a new Secure instance with supplied options.
NewStatsRecorder returns a new StatsRecorder.
NewStripPrefixRegex builds a new StripPrefixRegex given a handler and prefixes.
RecoverHandler recovers from a panic in http handlers.
# Constants
AddPrefixKey is the key within the request context used to store the added prefix.
ForwardedPrefixHeader is the default header to set prefix.
ReplacedPathHeader is the default header to set the old path to.
StripPrefixKey is the key within the request context used to store the stripped prefix.
StripPrefixSlashKey is the key within the request context used to store the stripped slash.
# Structs
AddPrefix is a middleware used to add prefix to an URL request.
CircuitBreaker holds the oxy circuit breaker.
Compress is a middleware that allows redirection.
EmptyBackendHandler is a middlware that checks whether the current Backend has at least one active Server in respect to the healthchecks and if this is not the case, it will stop the middleware chain and respond with 503.
HandlerSwitcher allows hot switching of http.ServeMux.
HeaderOptions is a struct for specifying configuration options for the headers middleware.
HeaderStruct is a middleware that helps setup a few basic security features.
IPWhiteLister is a middleware that provides Checks of the Requesting IP against a set of Whitelists.
MetricsRetryListener is an implementation of the RetryListener interface to record RequestMetrics about retry attempts.
ReplacePath is a middleware used to replace the path of a URL request.
ReplacePathRegex is a middleware used to replace the path of a URL request with a regular expression.
RequestHost is the struct for the middleware that adds the CanonicalDomain of the request Host into a context for later use.
Retry is a middleware that retries requests.
Routes holds the gorilla mux routes (for the API & co).
Stats includes all of the stats gathered by the recorder.
StatsRecorder is an optional middleware that records more details statistics about requests and how they are processed.
StripPrefix is a middleware used to strip prefix from an URL request.
StripPrefixRegex is a middleware used to strip prefix from an URL request.
# Interfaces
RetryListener is used to inform about retry attempts.
Stateful interface groups all http interfaces that must be implemented by a stateful middleware (ie: recorders).
# Type aliases
RetryListeners is a convenience type to construct a list of RetryListener and notify each of them about a retry attempt.