measured_http

package
v0.0.0-...-cfc7823 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2018 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeasuredHandler

type MeasuredHandler struct {
	// contains filtered or unexported fields
}

MeasuredHandler wraps an http.Handler and records prometheus stats

func New

func New(m serveMux, clk clock.Clock, scope metrics.Scope) *MeasuredHandler

func (*MeasuredHandler) ServeHTTP

func (h *MeasuredHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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