middlewares

package
v0.0.0-...-8c125ef Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SkipMiddlewarePaths = regexp.MustCompile("^/(users/|health)")
)

Functions

func ParseUserWithToken

func ParseUserWithToken(c echo.Context, jwtClient *jwt.JWT) *jwt.User

func UserAuthenticationMiddleware

func UserAuthenticationMiddleware(databaseClient *gorm.DB, controlClient *control.StateClientWriter, jwtClient *jwt.JWT) echo.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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