metrics

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToefCounters

func ToefCounters(r prometheus.Registerer, name, description string) (start ProcessStartFunc, finish ProcessFinishFunc)

Types

type Metrics

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

func New

func New(logger *zap.Logger, gatherer prometheus.Gatherer) *Metrics

func (*Metrics) ServeHTTP

func (m *Metrics) ServeHTTP(w http.ResponseWriter, r *http.Request)

check access and allow if ok

type ProcessFinishFunc

type ProcessFinishFunc func(error)

type ProcessStartFunc

type ProcessStartFunc func()

Jump to

Keyboard shortcuts

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