generics

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IDPathRegex regexp used to swap the {id*} parameters in the path with simply id
	// supports alphabetic characters and underscores, no dashes
	IDPathRegex string = "{[a-zA-Z_]*}"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

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

Middleware is the monitoring middleware object implementing Prometheus monitoring

func NewMiddleware

func NewMiddleware(monitor core.MonitorInterface, logger logging.LoggerInterface) *Middleware

NewMiddleware returns a Middleware based on the type of monitor

func (Middleware) APITime

func (mdw Middleware) APITime() func(http.Handler) http.Handler

APITime sets a labs_http_server_handling_seconds_v1 metric

Jump to

Keyboard shortcuts

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