metric

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggingResponseWriter

func NewLoggingResponseWriter(w http.ResponseWriter) *loggingResponseWriter

Types

type Metric

type Metric interface {
	CaptureMetrics(next http.Handler) http.Handler
	MetricsHandler() http.Handler
}

type PrometheusMetric

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

func NewPrometheusMetric

func NewPrometheusMetric() PrometheusMetric

func (*PrometheusMetric) CaptureMetrics

func (p *PrometheusMetric) CaptureMetrics(next http.Handler) http.Handler

func (*PrometheusMetric) MetricsHandler

func (p *PrometheusMetric) MetricsHandler() http.Handler

Jump to

Keyboard shortcuts

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