Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContextKey = "ContextKey" // 上下文变量存储键名 ContextKeyGrpc = "ContextKeyGrpc" // 服务间上下文变量存储键名 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Session *gsession.Session // 当前Session管理对象 User *ContextUser // 上下文用户信息(与Session中的数据结构不同) Grpc *ContextGrpc // 服务间上下文信息 }
内部方法请求上下文结构
type ContextGrpc ¶
type ContextGrpc struct {
User *ContextUser // 服务间上下文用户信息目前是和ContextUser一致,后期可能会不同
}
服务间请求上下文中的信息
type ContextUser ¶
内部方法请求上下文中的用户信息
type ServiceUserSignInReq ¶
登录输入参数
type ServiceUserSignUpReq ¶
注册输入参数
Click to show internal directories.
Click to hide internal directories.