middleware

package module
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 9 Imported by: 3

README

a collection of net/http middleware

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware added in v0.2.1

type Middleware struct {
	// Log is the log output for this Middleware.
	Log *logger.Logger
}

func (*Middleware) HTTPError added in v0.2.1

func (m *Middleware) HTTPError(rw http.ResponseWriter, r *http.Request, msg string, code int, err error)

func (*Middleware) Logger added in v0.2.1

func (m *Middleware) Logger(handler http.Handler) http.Handler

func (*Middleware) Recovery added in v0.2.1

func (m *Middleware) Recovery(handler http.Handler) http.Handler

type ResponseWriter added in v0.2.0

type ResponseWriter struct {
	http.ResponseWriter
	// contains filtered or unexported fields
}

func Wrap added in v0.2.0

func (*ResponseWriter) Status added in v0.2.0

func (rw *ResponseWriter) Status() int32

Jump to

Keyboard shortcuts

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