middleware

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LENS_HTTP_DURATION_SECONDS = "lens_http_duration_seconds"
	LENS_HTTP_REQUESTS_TOTAL   = "lens_http_requests_total"
	LENS_HTTP_REQUEST_CURRENT  = "lens_http_requests_current"
)

metrics names constants

View Source
const (
	PATH   = "path"
	METHOD = "method"
	STATUS = "status"
)

metrics labels constants

Variables

This section is empty.

Functions

func NewDelegator

func NewDelegator(w http.ResponseWriter, observeWriteHeaderFunc func(int)) delegator

func PrometheusMiddleware

func PrometheusMiddleware(next http.Handler) http.Handler

prometheusMiddleware implements mux.MiddlewareFunc.

Types

This section is empty.

Jump to

Keyboard shortcuts

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