Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessLog ¶
type AccessLog struct {
// contains filtered or unexported fields
}
AccessLog implements the middleware interface
func NewAccessLog ¶
NewAccessLog creates a new middleware which prints access logs
type Instrument ¶
type Instrument struct {
// contains filtered or unexported fields
}
Instrument is a middleware which creates a request duration historgram for every incoming HTTP request
func NewInstrument ¶
func NewInstrument(metricsNamespace string) *Instrument
NewInstrument creates a prometheus preinitialized instance which then can be used to bind a middleware to a router
Click to show internal directories.
Click to hide internal directories.