handlers

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IncomingRequest

func IncomingRequest(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, trace opentracing.Span) error

IncomingRequest orchestrates the logic that occurs for every incoming request

func Logger

func Logger(inner Handler) http.Handler

Logger creates a custom http.Handler that logs details around a request along with creating contextual request metrics. When the request is complete these metrics will be writtin to Influxdb

Types

type Handler

type Handler struct {
	*monitor.InfluxController
	H func(ctx context.Context, proxy *spec.APIProxy, m *metrics.Metrics, w http.ResponseWriter, r *http.Request, trace opentracing.Span) error
}

Handler is used to provide additional parameters to an HTTP handler

Jump to

Keyboard shortcuts

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