middleware

package
v0.0.0-...-1859c74 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KUBELINK_HTTP_DURATION_SECONDS = "kubelink_http_duration_seconds"
	KUBELINK_HTTP_REQUESTS_TOTAL   = "kubelink_http_requests_total"
	KUBELINK_HTTP_REQUESTS_CURRENT = "kubelink_http_requests_current"
)

metrics name constant

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