middleware

package
v0.1.3-rc.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware func(handlerFunc http.HandlerFunc) http.HandlerFunc

type Service

type Service interface {
	WrapHandlerWithMiddlewares(
		handlerFunc http.HandlerFunc,
		middlewares ...Middleware,
	) http.HandlerFunc
	LoggingMiddleware(next http.HandlerFunc) http.HandlerFunc
	PanicRecovery(next http.HandlerFunc) http.HandlerFunc
}

func NewMiddlewareService

func NewMiddlewareService() Service

Jump to

Keyboard shortcuts

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