package
0.17.1
Repository: https://github.com/weaveworks/scope.git
Documentation: pkg.go.dev

# Functions

MakeLabelValue converts a Gorilla mux path to a string suitable for use in a Prometheus label value.
Merge produces a middleware that applies multiple middlesware in turn; ie Merge(f,g,h).Wrap(handler) == f.Wrap(g.Wrap(h.Wrap(handler))).
PathReplace replcase Request.RequestURI with the specified string.
PathRewrite supports regex matching and replace on Request URIs.

# Variables

Identity is an Interface which doesn't do anything.
Logging middleware logs each HTTP request method, path, response code and duration.

# Structs

Instrument is a Middleware which records timings for every HTTP request.

# Interfaces

Interface is the shared contract for all middlesware, and allows middlesware to wrap handlers.

# Type aliases

Func is to Interface as http.HandlerFunc is to http.Handler.