Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type ForceLogoutReq
- func (*ForceLogoutReq) Descriptor() ([]byte, []int)deprecated
- func (x *ForceLogoutReq) GetPlatformID() int32
- func (x *ForceLogoutReq) GetUserID() string
- func (*ForceLogoutReq) ProtoMessage()
- func (x *ForceLogoutReq) ProtoReflect() protoreflect.Message
- func (x *ForceLogoutReq) Reset()
- func (x *ForceLogoutReq) String() string
- type ForceLogoutResp
- type GetUserTokenReq
- func (*GetUserTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserTokenReq) GetPlatformID() int32
- func (x *GetUserTokenReq) GetUserID() string
- func (*GetUserTokenReq) ProtoMessage()
- func (x *GetUserTokenReq) ProtoReflect() protoreflect.Message
- func (x *GetUserTokenReq) Reset()
- func (x *GetUserTokenReq) String() string
- type GetUserTokenResp
- func (*GetUserTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserTokenResp) GetExpireTimeSeconds() int64
- func (x *GetUserTokenResp) GetToken() string
- func (*GetUserTokenResp) ProtoMessage()
- func (x *GetUserTokenResp) ProtoReflect() protoreflect.Message
- func (x *GetUserTokenResp) Reset()
- func (x *GetUserTokenResp) String() string
- type ParseTokenReq
- type ParseTokenResp
- func (*ParseTokenResp) Descriptor() ([]byte, []int)deprecated
- func (x *ParseTokenResp) GetExpireTimeSeconds() int64
- func (x *ParseTokenResp) GetPlatform() string
- func (x *ParseTokenResp) GetUserID() string
- func (*ParseTokenResp) ProtoMessage()
- func (x *ParseTokenResp) ProtoReflect() protoreflect.Message
- func (x *ParseTokenResp) Reset()
- func (x *ParseTokenResp) String() string
- type UnimplementedUserServer
- type UnsafeUserServer
- type UserClient
- type UserHTTPClient
- type UserHTTPClientImpl
- type UserHTTPServer
- type UserImpl
- type UserInfoReq
- func (*UserInfoReq) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoReq) GetPlatformID() int32
- func (x *UserInfoReq) GetSecret() string
- func (x *UserInfoReq) GetUserID() string
- func (*UserInfoReq) ProtoMessage()
- func (x *UserInfoReq) ProtoReflect() protoreflect.Message
- func (x *UserInfoReq) Reset()
- func (x *UserInfoReq) String() string
- type UserInfoResp
- func (*UserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoResp) GetAccess() string
- func (x *UserInfoResp) GetAvatar() string
- func (x *UserInfoResp) GetCountry() string
- func (x *UserInfoResp) GetEmail() string
- func (x *UserInfoResp) GetGroup() string
- func (x *UserInfoResp) GetName() string
- func (x *UserInfoResp) GetNotifyCount() string
- func (x *UserInfoResp) GetSignature() string
- func (x *UserInfoResp) GetTags() string
- func (x *UserInfoResp) GetTitle() string
- func (x *UserInfoResp) GetToken() string
- func (x *UserInfoResp) GetUnreadCount() string
- func (x *UserInfoResp) GetUserid() int32
- func (*UserInfoResp) ProtoMessage()
- func (x *UserInfoResp) ProtoReflect() protoreflect.Message
- func (x *UserInfoResp) Reset()
- func (x *UserInfoResp) String() string
- type UserServer
Constants ¶
const OperationUsergetUserInfo = "/atreus.user.User/getUserInfo"
const (
User_GetUserInfo_FullMethodName = "/atreus.user.User/getUserInfo"
)
Variables ¶
var File_api_user_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "atreus.user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "getUserInfo", Handler: _User_GetUserInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/user.proto", }
User_ServiceDesc is the grpc.ServiceDesc for User service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserHTTPServer ¶
func RegisterUserHTTPServer(s *http.Server, srv UserHTTPServer)
func RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type ForceLogoutReq ¶
type ForceLogoutReq struct { PlatformID int32 `protobuf:"varint,1,opt,name=platformID,proto3" json:"platformID,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*ForceLogoutReq) Descriptor
deprecated
func (*ForceLogoutReq) Descriptor() ([]byte, []int)
Deprecated: Use ForceLogoutReq.ProtoReflect.Descriptor instead.
func (*ForceLogoutReq) GetPlatformID ¶
func (x *ForceLogoutReq) GetPlatformID() int32
func (*ForceLogoutReq) GetUserID ¶
func (x *ForceLogoutReq) GetUserID() string
func (*ForceLogoutReq) ProtoMessage ¶
func (*ForceLogoutReq) ProtoMessage()
func (*ForceLogoutReq) ProtoReflect ¶
func (x *ForceLogoutReq) ProtoReflect() protoreflect.Message
func (*ForceLogoutReq) Reset ¶
func (x *ForceLogoutReq) Reset()
func (*ForceLogoutReq) String ¶
func (x *ForceLogoutReq) String() string
type ForceLogoutResp ¶
type ForceLogoutResp struct {
// contains filtered or unexported fields
}
func (*ForceLogoutResp) Descriptor
deprecated
func (*ForceLogoutResp) Descriptor() ([]byte, []int)
Deprecated: Use ForceLogoutResp.ProtoReflect.Descriptor instead.
func (*ForceLogoutResp) ProtoMessage ¶
func (*ForceLogoutResp) ProtoMessage()
func (*ForceLogoutResp) ProtoReflect ¶
func (x *ForceLogoutResp) ProtoReflect() protoreflect.Message
func (*ForceLogoutResp) Reset ¶
func (x *ForceLogoutResp) Reset()
func (*ForceLogoutResp) String ¶
func (x *ForceLogoutResp) String() string
type GetUserTokenReq ¶
type GetUserTokenReq struct { PlatformID int32 `protobuf:"varint,1,opt,name=platformID,proto3" json:"platformID,omitempty"` UserID string `protobuf:"bytes,2,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*GetUserTokenReq) Descriptor
deprecated
func (*GetUserTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTokenReq.ProtoReflect.Descriptor instead.
func (*GetUserTokenReq) GetPlatformID ¶
func (x *GetUserTokenReq) GetPlatformID() int32
func (*GetUserTokenReq) GetUserID ¶
func (x *GetUserTokenReq) GetUserID() string
func (*GetUserTokenReq) ProtoMessage ¶
func (*GetUserTokenReq) ProtoMessage()
func (*GetUserTokenReq) ProtoReflect ¶
func (x *GetUserTokenReq) ProtoReflect() protoreflect.Message
func (*GetUserTokenReq) Reset ¶
func (x *GetUserTokenReq) Reset()
func (*GetUserTokenReq) String ¶
func (x *GetUserTokenReq) String() string
type GetUserTokenResp ¶
type GetUserTokenResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` ExpireTimeSeconds int64 `protobuf:"varint,2,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds,omitempty"` // contains filtered or unexported fields }
func (*GetUserTokenResp) Descriptor
deprecated
func (*GetUserTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserTokenResp.ProtoReflect.Descriptor instead.
func (*GetUserTokenResp) GetExpireTimeSeconds ¶
func (x *GetUserTokenResp) GetExpireTimeSeconds() int64
func (*GetUserTokenResp) GetToken ¶
func (x *GetUserTokenResp) GetToken() string
func (*GetUserTokenResp) ProtoMessage ¶
func (*GetUserTokenResp) ProtoMessage()
func (*GetUserTokenResp) ProtoReflect ¶
func (x *GetUserTokenResp) ProtoReflect() protoreflect.Message
func (*GetUserTokenResp) Reset ¶
func (x *GetUserTokenResp) Reset()
func (*GetUserTokenResp) String ¶
func (x *GetUserTokenResp) String() string
type ParseTokenReq ¶
type ParseTokenReq struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ParseTokenReq) Descriptor
deprecated
func (*ParseTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use ParseTokenReq.ProtoReflect.Descriptor instead.
func (*ParseTokenReq) GetToken ¶
func (x *ParseTokenReq) GetToken() string
func (*ParseTokenReq) ProtoMessage ¶
func (*ParseTokenReq) ProtoMessage()
func (*ParseTokenReq) ProtoReflect ¶
func (x *ParseTokenReq) ProtoReflect() protoreflect.Message
func (*ParseTokenReq) Reset ¶
func (x *ParseTokenReq) Reset()
func (*ParseTokenReq) String ¶
func (x *ParseTokenReq) String() string
type ParseTokenResp ¶
type ParseTokenResp struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` Platform string `protobuf:"bytes,2,opt,name=platform,proto3" json:"platform,omitempty"` ExpireTimeSeconds int64 `protobuf:"varint,4,opt,name=expireTimeSeconds,proto3" json:"expireTimeSeconds,omitempty"` // contains filtered or unexported fields }
func (*ParseTokenResp) Descriptor
deprecated
func (*ParseTokenResp) Descriptor() ([]byte, []int)
Deprecated: Use ParseTokenResp.ProtoReflect.Descriptor instead.
func (*ParseTokenResp) GetExpireTimeSeconds ¶
func (x *ParseTokenResp) GetExpireTimeSeconds() int64
func (*ParseTokenResp) GetPlatform ¶
func (x *ParseTokenResp) GetPlatform() string
func (*ParseTokenResp) GetUserID ¶
func (x *ParseTokenResp) GetUserID() string
func (*ParseTokenResp) ProtoMessage ¶
func (*ParseTokenResp) ProtoMessage()
func (*ParseTokenResp) ProtoReflect ¶
func (x *ParseTokenResp) ProtoReflect() protoreflect.Message
func (*ParseTokenResp) Reset ¶
func (x *ParseTokenResp) Reset()
func (*ParseTokenResp) String ¶
func (x *ParseTokenResp) String() string
type UnimplementedUserServer ¶
type UnimplementedUserServer struct { }
UnimplementedUserServer should be embedded to have forward compatible implementations.
func (UnimplementedUserServer) GetUserInfo ¶
func (UnimplementedUserServer) GetUserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error)
type UnsafeUserServer ¶
type UnsafeUserServer interface {
// contains filtered or unexported methods
}
UnsafeUserServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServer will result in compilation errors.
type UserClient ¶
type UserClient interface { // 获取用户信息 GetUserInfo(ctx context.Context, in *UserInfoReq, opts ...grpc.CallOption) (*UserInfoResp, error) }
UserClient is the client API for User service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewUserClient ¶
func NewUserClient(cc grpc.ClientConnInterface) UserClient
type UserHTTPClient ¶
type UserHTTPClient interface {
GetUserInfo(ctx context.Context, req *UserInfoReq, opts ...http.CallOption) (rsp *UserInfoResp, err error)
}
func NewUserHTTPClient ¶
func NewUserHTTPClient(client *http.Client) UserHTTPClient
type UserHTTPClientImpl ¶
type UserHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*UserHTTPClientImpl) GetUserInfo ¶
func (c *UserHTTPClientImpl) GetUserInfo(ctx context.Context, in *UserInfoReq, opts ...http.CallOption) (*UserInfoResp, error)
type UserHTTPServer ¶
type UserHTTPServer interface { // GetUserInfo获取用户信息 GetUserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error) }
type UserImpl ¶
type UserImpl struct {
// contains filtered or unexported fields
}
func NewUserImpl ¶
func NewUserImpl(conn *grpc.ClientConn) *UserImpl
func (*UserImpl) GetUserInfo ¶
func (c *UserImpl) GetUserInfo(ctx context.Context, in *UserInfoReq) (*UserInfoResp, error)
type UserInfoReq ¶
type UserInfoReq struct { Secret string `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"` PlatformID int32 `protobuf:"varint,2,opt,name=platformID,proto3" json:"platformID,omitempty"` UserID string `protobuf:"bytes,3,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*UserInfoReq) Descriptor
deprecated
func (*UserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead.
func (*UserInfoReq) GetPlatformID ¶
func (x *UserInfoReq) GetPlatformID() int32
func (*UserInfoReq) GetSecret ¶
func (x *UserInfoReq) GetSecret() string
func (*UserInfoReq) GetUserID ¶
func (x *UserInfoReq) GetUserID() string
func (*UserInfoReq) ProtoMessage ¶
func (*UserInfoReq) ProtoMessage()
func (*UserInfoReq) ProtoReflect ¶
func (x *UserInfoReq) ProtoReflect() protoreflect.Message
func (*UserInfoReq) Reset ¶
func (x *UserInfoReq) Reset()
func (*UserInfoReq) String ¶
func (x *UserInfoReq) String() string
type UserInfoResp ¶
type UserInfoResp struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"` Userid int32 `protobuf:"varint,4,opt,name=userid,proto3" json:"userid,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` Signature string `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` Title string `protobuf:"bytes,7,opt,name=title,proto3" json:"title,omitempty"` Group string `protobuf:"bytes,8,opt,name=group,proto3" json:"group,omitempty"` Tags string `protobuf:"bytes,9,opt,name=tags,proto3" json:"tags,omitempty"` NotifyCount string `protobuf:"bytes,10,opt,name=notifyCount,proto3" json:"notifyCount,omitempty"` UnreadCount string `protobuf:"bytes,11,opt,name=unreadCount,proto3" json:"unreadCount,omitempty"` Country string `protobuf:"bytes,12,opt,name=country,proto3" json:"country,omitempty"` Access string `protobuf:"bytes,13,opt,name=access,proto3" json:"access,omitempty"` // contains filtered or unexported fields }
func (*UserInfoResp) Descriptor
deprecated
func (*UserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.
func (*UserInfoResp) GetAccess ¶
func (x *UserInfoResp) GetAccess() string
func (*UserInfoResp) GetAvatar ¶
func (x *UserInfoResp) GetAvatar() string
func (*UserInfoResp) GetCountry ¶
func (x *UserInfoResp) GetCountry() string
func (*UserInfoResp) GetEmail ¶
func (x *UserInfoResp) GetEmail() string
func (*UserInfoResp) GetGroup ¶
func (x *UserInfoResp) GetGroup() string
func (*UserInfoResp) GetName ¶
func (x *UserInfoResp) GetName() string
func (*UserInfoResp) GetNotifyCount ¶
func (x *UserInfoResp) GetNotifyCount() string
func (*UserInfoResp) GetSignature ¶
func (x *UserInfoResp) GetSignature() string
func (*UserInfoResp) GetTags ¶
func (x *UserInfoResp) GetTags() string
func (*UserInfoResp) GetTitle ¶
func (x *UserInfoResp) GetTitle() string
func (*UserInfoResp) GetToken ¶
func (x *UserInfoResp) GetToken() string
func (*UserInfoResp) GetUnreadCount ¶
func (x *UserInfoResp) GetUnreadCount() string
func (*UserInfoResp) GetUserid ¶
func (x *UserInfoResp) GetUserid() int32
func (*UserInfoResp) ProtoMessage ¶
func (*UserInfoResp) ProtoMessage()
func (*UserInfoResp) ProtoReflect ¶
func (x *UserInfoResp) ProtoReflect() protoreflect.Message
func (*UserInfoResp) Reset ¶
func (x *UserInfoResp) Reset()
func (*UserInfoResp) String ¶
func (x *UserInfoResp) String() string
type UserServer ¶
type UserServer interface { // 获取用户信息 GetUserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error) }
UserServer is the server API for User service. All implementations should embed UnimplementedUserServer for forward compatibility