middleware

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter func(http.Handler) http.Handler

func (Adapter) Wrap

func (m Adapter) Wrap(next http.Handler) http.Handler

type Instrument

type Instrument struct {
	Duration *prometheus.HistogramVec
}

func (Instrument) Wrap

func (i Instrument) Wrap(next http.Handler) http.Handler

type Interface

type Interface interface {
	Wrap(http.Handler) http.Handler
}

func Merge

func Merge(middlesware ...Interface) Interface

type StatusRecorder

type StatusRecorder struct {
	http.ResponseWriter
	Status int
}

func (*StatusRecorder) WriteHeader

func (sr *StatusRecorder) WriteHeader(status int)

Jump to

Keyboard shortcuts

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