xhttp

package
v0.0.0-...-f89cf20 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware interface {
	Next(next http.HandlerFunc) http.HandlerFunc
}

func LogMiddleware

func LogMiddleware(l *zap.Logger) Middleware

func MetricMiddleware

func MetricMiddleware(histogram *prometheus.HistogramVec, f func(r *http.Request) []string) Middleware

func NopMiddleware

func NopMiddleware() Middleware

func RecoveryMiddleware

func RecoveryMiddleware() Middleware

func TraceMiddleware

func TraceMiddleware(tracer opentracing.Tracer) Middleware

type MiddlewareFn

type MiddlewareFn func(next http.HandlerFunc) http.HandlerFunc

func (MiddlewareFn) Next

Jump to

Keyboard shortcuts

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