Documentation
¶
Overview ¶
@Author: Ciusyan 2023/2/7
@Author: Ciusyan 2023/2/8
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthServiceClient ¶
type AuthServiceClient struct {
// contains filtered or unexported fields
}
AuthServiceClient 认真服务 SDK
func NewAuthServiceClientFromCfg ¶
func NewAuthServiceClientFromCfg() (*AuthServiceClient, error)
NewAuthServiceClientFromCfg 从配置文件读取注册中心配置
func NewAuthServiceClientFromEnv ¶
func NewAuthServiceClientFromEnv() (*AuthServiceClient, error)
NewAuthServiceClientFromEnv 从环境变量读取注册中心配置
func (*AuthServiceClient) GinAuthHandlerFunc ¶
func (a *AuthServiceClient) GinAuthHandlerFunc() exception.AppHandler
GinAuthHandlerFunc HTTP auth中间件
func (*AuthServiceClient) TokenService ¶
func (c *AuthServiceClient) TokenService() token.ServiceClient
Click to show internal directories.
Click to hide internal directories.