Documentation
¶
Overview ¶
Package middleware provides middleware functions used by the Router during registration to construct handler chains
Package middleware provides middleware functions used by the Router during registration to construct handler chains
Index ¶
- func Decorate(originName, originType, path string, next http.Handler) http.Handler
- func StripPathPrefix(prefix string, next http.Handler) http.Handler
- func Trace(tr *tracing.Tracer, next http.Handler) http.Handler
- func WithResourcesContext(client origins.Client, oc *oo.Options, c cache.Cache, p *po.Options, ...) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decorate ¶
Decorate decorates a function in such a way that it captures both the returned status and the time used to execute a request from the front end perspective
func StripPathPrefix ¶
StripPathPrefix removes the provided prefix from incoming HTTP Requests URLs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.