middleware

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 13 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 RecoveryTracer added in v1.0.57

func RecoveryTracer(next http.Handler) http.Handler

func SetupMiddleware

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

func TraceHttp added in v1.0.59

func TraceHttp(next http.Handler) http.Handler

Types

type AuthMiddleware added in v1.0.13

type AuthMiddleware interface {
	CheckIsAuthenticated(handler http.Handler) http.Handler
	CheckIsRefresh(handler http.Handler) http.Handler
	CheckIsAdmin(handler http.Handler) http.Handler
}

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) CheckIsAdmin added in v1.0.33

func (m *AuthMiddlewareImpl) CheckIsAdmin(next http.Handler) http.Handler

func (*AuthMiddlewareImpl) CheckIsAuthenticated added in v1.0.13

func (m *AuthMiddlewareImpl) CheckIsAuthenticated(next http.Handler) http.Handler

func (*AuthMiddlewareImpl) CheckIsRefresh added in v1.0.24

func (m *AuthMiddlewareImpl) CheckIsRefresh(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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