metrics

package module
v0.0.0-...-3b028d1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cleanup

type Cleanup func()

type Handler

type Handler func(c *gin.Context) Cleanup

type Metric

type Metric func(registry *prometheus.Registry, factory promauto.Factory) Handler

type Middleware

type Middleware struct {
	Registry *prometheus.Registry
	Factory  promauto.Factory
	Metrics  []Metric
	// contains filtered or unexported fields
}

func New

func New(metrics []Metric) *Middleware

func (*Middleware) Handler

func (m *Middleware) Handler() gin.HandlerFunc

func (*Middleware) Register

func (m *Middleware) Register()

Jump to

Keyboard shortcuts

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