Documentation
¶
Index ¶
- func CorsEchoMiddleware() echo.MiddlewareFunc
- func EnsureAuthorized(next echo.HandlerFunc) echo.HandlerFunc
- func PublicUnauthorized(next echo.HandlerFunc) echo.HandlerFunc
- func RequestContextMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- func RequestContextMiddleware2(moduleName string) echo.MiddlewareFunc
- func RequestContextMiddleware3(next echo.HandlerFunc) echo.HandlerFunc
- func SmokeAuthorizeMiddleware() echo.MiddlewareFunc
- func SmokeAuthz() echo.MiddlewareFunc
- type LazyMiddleware
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
Click to show internal directories.
Click to hide internal directories.