middleware

package
v0.0.0-...-64e8138 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminMiddleware

func AdminMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func Handle

func Handle(h func(*CustomContext) error) echo.HandlerFunc

Types

type CustomContext

type CustomContext struct {
	echo.Context
}

func (*CustomContext) BindAndValidate

func (c *CustomContext) BindAndValidate(i interface{}) error

func (*CustomContext) GetUUID

func (c *CustomContext) GetUUID(param string) (uuid.UUID, error)

type JwtCustomClaims

type JwtCustomClaims struct {
	jwt.RegisteredClaims

	Admin bool `json:"admin"`
}

func (*JwtCustomClaims) UUID

func (j *JwtCustomClaims) UUID() uuid.UUID

Jump to

Keyboard shortcuts

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