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.
Click to show internal directories.
Click to hide internal directories.