middlewares

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: Apache-2.0 Imports: 14 Imported by: 5

Documentation

Index

Constants

View Source
const (
	MetricsUrl string = "/metrics"
)

Variables

This section is empty.

Functions

func MetricsHandler

func MetricsHandler(next http.Handler) http.Handler

func PprofHandler added in v1.0.6

func PprofHandler(next http.Handler) http.Handler

func RequestLog

func RequestLog(next http.Handler, cfg MiddlewareConfig) http.Handler

Types

type MiddlewareConfig added in v1.0.1

type MiddlewareConfig struct {
	Logger xlog.Logger
	Pprof  bool
}

Jump to

Keyboard shortcuts

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