middlewares

package
v0.0.0-...-74fde0a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func CreateToken

func CreateToken(user model.User) (string, error)

func ExtractTokenUserId

func ExtractTokenUserId(userType string, c echo.Context) string

func LogMiddlewares

func LogMiddlewares(e *echo.Echo)

Types

type Middlewares

type Middlewares interface {
	CreateToken(user model.User) (string, error)
	ExtractTokenUserId(userType string, c echo.Context) string
	AuthMiddleware(next echo.HandlerFunc) echo.HandlerFunc
}

Jump to

Keyboard shortcuts

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