middleware

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decorate

func Decorate(originName, originType, path string, next http.Handler) http.Handler

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

func StripPathPrefix(prefix string, next http.Handler) http.Handler

StripPathPrefix removes the provided prefix from incoming HTTP Requests URLs

func Trace

func Trace(tr *tracing.Tracer, next http.Handler) http.Handler

Trace attaches a Tracer to an HTTP request

func WithResourcesContext

func WithResourcesContext(client origins.Client, oc *oo.Options,
	c cache.Cache, p *po.Options, t *tracing.Tracer,
	l *tl.Logger, next http.Handler) http.Handler

WithResourcesContext ...

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL