middleware

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recovery

func Recovery(next http.Handler) http.Handler

func SetupMiddleware

func SetupMiddleware(route *chi.Mux, config *common_utils.BaseConfig)

Types

type AuthMiddleware added in v1.0.13

type AuthMiddleware interface {
	CheckIsAuthenticated(handler func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc
}

func NewAuthMiddleware added in v1.0.13

func NewAuthMiddleware(jwt jwtMaker.JWT) AuthMiddleware

type AuthMiddlewareImpl added in v1.0.13

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

func (*AuthMiddlewareImpl) CheckIsAuthenticated added in v1.0.13

func (m *AuthMiddlewareImpl) CheckIsAuthenticated(handler func(w http.ResponseWriter, r *http.Request)) http.HandlerFunc

Jump to

Keyboard shortcuts

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