middlewares

package
v0.0.0-...-e2a5574 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: LGPL-2.1 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CorsEchoMiddleware

func CorsEchoMiddleware() echo.MiddlewareFunc

An Echo middleware that supports re-configuring CORS at runtime. Only takes effect if enabled in the configuration.

func EnsureAuthorized

func EnsureAuthorized(next echo.HandlerFunc) echo.HandlerFunc

Ensure the request is authorized by any of the processing layers.

func PublicUnauthorized

func PublicUnauthorized(next echo.HandlerFunc) echo.HandlerFunc

func RequestContextMiddleware

func RequestContextMiddleware(next echo.HandlerFunc) echo.HandlerFunc

func RequestContextMiddleware2

func RequestContextMiddleware2(moduleName string) echo.MiddlewareFunc

func RequestContextMiddleware3

func RequestContextMiddleware3(next echo.HandlerFunc) echo.HandlerFunc

func SmokeAuthorizeMiddleware

func SmokeAuthorizeMiddleware() echo.MiddlewareFunc

Verifies access token and loads user permission to request context.

func SmokeAuthz

func SmokeAuthz() echo.MiddlewareFunc

Shortcut for lazy-wrapped SmokeAuthorizeMiddleware.

Types

type LazyMiddleware

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

func Lazyware

func Lazyware(middlewareCreator func() echo.MiddlewareFunc) *LazyMiddleware

func (*LazyMiddleware) Enable

func (this *LazyMiddleware) Enable()

func (*LazyMiddleware) Middleware

func (this *LazyMiddleware) Middleware() echo.MiddlewareFunc

Jump to

Keyboard shortcuts

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