middleware

package
v0.0.31 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthMiddleware

func NewAuthMiddleware(
	authenticator engine.Authenticator,
	authorizer authzEngine.Engine,
	userToken *data.UserToken,
	cfg *configv1.Authentication_Jwt,
) middleware.Middleware

NewAuthMiddleware 创建使用真实请求方式的统一鉴权中间件。

func NewI18nCatalogMiddleware

func NewI18nCatalogMiddleware(catalog *i18n.I18n, cache cache.Cache) middleware.Middleware

NewI18nCatalogMiddleware 使用 Core 已装载的国际化目录创建本地化拦截器。

func NewValidateMiddleware

func NewValidateMiddleware() middleware.Middleware

NewValidateMiddleware 创建基于 Proto 声明的请求参数校验中间件。

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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