handlers

package
v0.0.0-...-50a42c1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2018 License: Apache-2.0 Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*logrus.Entry, bool)

func HTTPLogrusLogger

func HTTPLogrusLogger(h http.Handler) http.Handler

func HTTPMetricsCollector

func HTTPMetricsCollector(fn http.Handler) http.Handler

func HttpApacheLogger

func HttpApacheLogger(h http.Handler) http.Handler

httpLogger provides per request log statements (ala Apache httpd)

func NewTracer

func NewTracer(serviceName string) opentracing.Tracer

Types

type HandlerFunc

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

HandlerFunc is a middleware function for incoming HTTP requests.

func TracerFromHTTPRequest

func TracerFromHTTPRequest(tracer opentracing.Tracer, operationName string,
) HandlerFunc

Jump to

Keyboard shortcuts

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