metrics

package
v0.0.0-...-7f60d53 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

A Middleware for prometheus metrics

func NewMiddleware

func NewMiddleware() *Middleware

NewMiddleware creates a new metrics middleware

func (*Middleware) Decorate

func (mmw *Middleware) Decorate(handlerName string, handlerFunction http.HandlerFunc) http.Handler

Decorate the given handlerFunction to include request metrics

Jump to

Keyboard shortcuts

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