middleware

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheWithRevalidation

func CacheWithRevalidation(next echo.HandlerFunc) echo.HandlerFunc

func LoggingMiddleware

func LoggingMiddleware(logger *zerolog.Logger) echo.MiddlewareFunc

func NewEchoServer

func NewEchoServer(cfg config.Config) *echo.Echo

NewEchoServer creates and configures a new Echo server instance. Parameters:

  • cfg: The application configuration.

Returns:

  • *echo.Echo: A configured Echo server instance.

Types

type CustomValidator

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

func (*CustomValidator) Validate

func (v *CustomValidator) Validate(i interface{}) error

type Middleware added in v0.0.9

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

func NewMiddleware added in v0.0.9

func NewMiddleware(jwt *app_jwt.JWT) *Middleware

func (*Middleware) JWTMiddleware added in v0.0.9

func (m *Middleware) JWTMiddleware() echo.MiddlewareFunc

Middleware function to validate JWT token

Jump to

Keyboard shortcuts

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