package
1.6.0-rc4
Repository: https://github.com/csimplestring/traefik.git
Documentation: pkg.go.dev

# 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

# Functions

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.
NewErrorPagesHandler initializes the utils.ErrorHandler for the custom error pages.
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

ForwardedPrefixHeader is the default header to set prefix.
ReplacedPathHeader is the default header to set the old path to.

# 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.
DefaultNetErrorRecorder is the default NetErrorRecorder implementation.
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.
ErrorPagesHandler is a middleware that provides the custom error pages.
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.
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

NetErrorRecorder is an interface to record net errors.
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.