http

package
v0.0.0-...-820def7 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstrumentationMiddleware

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

InstrumentationMiddleware TODO

func NewInstrumentation

func NewInstrumentation(reg prometheus.Registerer, name string) *InstrumentationMiddleware

NewInstrumentation provides default Instrumentation middleware.

func (*InstrumentationMiddleware) NewHandler

func (m *InstrumentationMiddleware) NewHandler(handlerName string, handler http.Handler) http.HandlerFunc

NewHandler wraps the given HTTP handler for instrumentation.

type LoggerMiddleware

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

LoggerMiddleware TODO

func NewLogger

func NewLogger(logger log.Logger) *LoggerMiddleware

NewLogger provides new logging middleware.

func (*LoggerMiddleware) NewHandler

func (m *LoggerMiddleware) NewHandler(handlerName string, next http.Handler) http.HandlerFunc

NewHandler TODO

Jump to

Keyboard shortcuts

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