u_middleware

package
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogMiddleware

type LogMiddleware struct {
}

func NewLogMiddleware

func NewLogMiddleware() *LogMiddleware

func (*LogMiddleware) Middleware

func (a *LogMiddleware) Middleware() func(next http.Handler) http.Handler

type MetricMiddleware

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

func NewMetricMiddleware

func NewMetricMiddleware(metricMap PathConfig) *MetricMiddleware

func (*MetricMiddleware) Middleware

func (a *MetricMiddleware) Middleware() func(http.Handler) http.Handler

type PathConfig

type PathConfig interface {
	PathCleanUp() map[*regexp.Regexp]string
	PathIgnored() map[string]bool
}

func NewDefaultPathConfig

func NewDefaultPathConfig() PathConfig

Jump to

Keyboard shortcuts

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