Documentation
¶
Index ¶
- Variables
- func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetTags() []string
- func (x *Article) GetTitle() string
- func (x *Article) GetUrl() string
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type CancellationReq
- type CancellationResp
- type Class
- type GetUserListReq
- func (*GetUserListReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserListReq) GetPage() uint32
- func (x *GetUserListReq) GetSize() uint32
- func (x *GetUserListReq) GetSort() UserListSort
- func (*GetUserListReq) ProtoMessage()
- func (x *GetUserListReq) ProtoReflect() protoreflect.Message
- func (x *GetUserListReq) Reset()
- func (x *GetUserListReq) String() string
- type GetUserListResp
- type Info
- type LoginReq
- type LoginResp
- func (*LoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResp) GetID() uint32
- func (x *LoginResp) GetToken() string
- func (x *LoginResp) GetUserName() string
- func (*LoginResp) ProtoMessage()
- func (x *LoginResp) ProtoReflect() protoreflect.Message
- func (x *LoginResp) Reset()
- func (x *LoginResp) String() string
- type Msg
- type RegisterUserReq
- func (*RegisterUserReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserReq) GetArticle() *Article
- func (x *RegisterUserReq) GetClass() *Class
- func (x *RegisterUserReq) GetInfo() *Info
- func (x *RegisterUserReq) GetMsg() *Msg
- func (x *RegisterUserReq) GetPwd() string
- func (x *RegisterUserReq) GetSex() UserSex
- func (x *RegisterUserReq) GetStudent() *Student
- func (x *RegisterUserReq) GetUserName() string
- func (x *RegisterUserReq) GetWeek() Week
- func (*RegisterUserReq) ProtoMessage()
- func (x *RegisterUserReq) ProtoReflect() protoreflect.Message
- func (x *RegisterUserReq) Reset()
- func (x *RegisterUserReq) String() string
- type RegisterUserResp
- func (*RegisterUserResp) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterUserResp) GetID() uint32
- func (x *RegisterUserResp) GetUserName() string
- func (*RegisterUserResp) ProtoMessage()
- func (x *RegisterUserResp) ProtoReflect() protoreflect.Message
- func (x *RegisterUserResp) Reset()
- func (x *RegisterUserResp) String() string
- type Student
- func (*Student) Descriptor() ([]byte, []int)deprecated
- func (x *Student) GetId() int64
- func (x *Student) GetName() string
- func (x *Student) GetScore() map[string]int32
- func (*Student) ProtoMessage()
- func (x *Student) ProtoReflect() protoreflect.Message
- func (x *Student) Reset()
- func (x *Student) String() string
- type UnimplementedUserServer
- func (UnimplementedUserServer) Cancellation(context.Context, *CancellationReq) (*CancellationResp, error)
- func (UnimplementedUserServer) GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error)
- func (UnimplementedUserServer) Login(context.Context, *LoginReq) (*LoginResp, error)
- func (UnimplementedUserServer) RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error)
- func (UnimplementedUserServer) UploadImg(context.Context, *UploadImgReq) (*UploadImgResp, error)
- func (UnimplementedUserServer) UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error)
- type UnsafeUserServer
- type UploadImgReq
- func (*UploadImgReq) Descriptor() ([]byte, []int)deprecated
- func (x *UploadImgReq) GetFileType() UploadImgType
- func (x *UploadImgReq) GetImg() []byte
- func (*UploadImgReq) ProtoMessage()
- func (x *UploadImgReq) ProtoReflect() protoreflect.Message
- func (x *UploadImgReq) Reset()
- func (x *UploadImgReq) String() string
- type UploadImgResp
- func (*UploadImgResp) Descriptor() ([]byte, []int)deprecated
- func (x *UploadImgResp) GetCode() UploadStatusCode
- func (x *UploadImgResp) GetMessage() string
- func (*UploadImgResp) ProtoMessage()
- func (x *UploadImgResp) ProtoReflect() protoreflect.Message
- func (x *UploadImgResp) Reset()
- func (x *UploadImgResp) String() string
- type UploadImgType
- func (UploadImgType) Descriptor() protoreflect.EnumDescriptor
- func (x UploadImgType) Enum() *UploadImgType
- func (UploadImgType) EnumDescriptor() ([]byte, []int)deprecated
- func (x UploadImgType) Number() protoreflect.EnumNumber
- func (x UploadImgType) String() string
- func (UploadImgType) Type() protoreflect.EnumType
- type UploadStatusCode
- func (UploadStatusCode) Descriptor() protoreflect.EnumDescriptor
- func (x UploadStatusCode) Enum() *UploadStatusCode
- func (UploadStatusCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x UploadStatusCode) Number() protoreflect.EnumNumber
- func (x UploadStatusCode) String() string
- func (UploadStatusCode) Type() protoreflect.EnumType
- type UserClient
- type UserInfo
- func (*UserInfo) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfo) GetA() uint32
- func (x *UserInfo) GetG() uint32
- func (x *UserInfo) GetID() uint32
- func (x *UserInfo) GetT() uint32
- func (x *UserInfo) GetUserName() string
- func (x *UserInfo) GetW() uint32
- func (*UserInfo) ProtoMessage()
- func (x *UserInfo) ProtoReflect() protoreflect.Message
- func (x *UserInfo) Reset()
- func (x *UserInfo) String() string
- type UserInfoReq
- type UserInfoResp
- func (*UserInfoResp) Descriptor() ([]byte, []int)deprecated
- func (x *UserInfoResp) GetID() uint32
- func (x *UserInfoResp) GetUserName() string
- func (*UserInfoResp) ProtoMessage()
- func (x *UserInfoResp) ProtoReflect() protoreflect.Message
- func (x *UserInfoResp) Reset()
- func (x *UserInfoResp) String() string
- type UserListSort
- func (UserListSort) Descriptor() protoreflect.EnumDescriptor
- func (x UserListSort) Enum() *UserListSort
- func (UserListSort) EnumDescriptor() ([]byte, []int)deprecated
- func (x UserListSort) Number() protoreflect.EnumNumber
- func (x UserListSort) String() string
- func (UserListSort) Type() protoreflect.EnumType
- type UserServer
- type UserSex
- type Week
Constants ¶
This section is empty.
Variables ¶
var ( UserSex_name = map[int32]string{ 0: "Male", 1: "Female", } UserSex_value = map[string]int32{ "Male": 0, "Female": 1, } )
Enum value maps for UserSex.
var ( Week_name = map[int32]string{ 0: "Sunday", 1: "Monday", 2: "Tuesday", 3: "Wednesday", 4: "Thursday", 5: "Friday", 6: "Saturday", } Week_value = map[string]int32{ "Sunday": 0, "Monday": 1, "Tuesday": 2, "Wednesday": 3, "Thursday": 4, "Friday": 5, "Saturday": 6, } )
Enum value maps for Week.
var ( UserListSort_name = map[int32]string{ 0: "ASC", 1: "Desc", } UserListSort_value = map[string]int32{ "ASC": 0, "Desc": 1, } )
Enum value maps for UserListSort.
var ( UploadImgType_name = map[int32]string{ 0: "PNG", 1: "JPG", } UploadImgType_value = map[string]int32{ "PNG": 0, "JPG": 1, } )
Enum value maps for UploadImgType.
var ( UploadStatusCode_name = map[int32]string{ 0: "Unknown", 1: "Ok", 2: "Failed", } UploadStatusCode_value = map[string]int32{ "Unknown": 0, "Ok": 1, "Failed": 2, } )
Enum value maps for UploadStatusCode.
var File_user_proto protoreflect.FileDescriptor
var User_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.User", HandlerType: (*UserServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterUser", Handler: _User_RegisterUser_Handler, }, { MethodName: "Login", Handler: _User_Login_Handler, }, { MethodName: "Cancellation", Handler: _User_Cancellation_Handler, }, { MethodName: "UploadImg", Handler: _User_UploadImg_Handler, }, { MethodName: "GetUserList", Handler: _User_GetUserList_Handler, }, { MethodName: "UserInfo", Handler: _User_UserInfo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "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 RegisterUserServer ¶
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer)
Types ¶
type Article ¶ added in v0.1.5
type Article struct {
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
Tags []string `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
func (*Article) Descriptor
deprecated
added in
v0.1.5
func (*Article) ProtoMessage ¶ added in v0.1.5
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶ added in v0.1.5
func (x *Article) ProtoReflect() protoreflect.Message
type CancellationReq ¶
type CancellationReq struct {
Token string `protobuf:"bytes,1,opt,name=Token,proto3" json:"Token,omitempty"`
// contains filtered or unexported fields
}
func (*CancellationReq) Descriptor
deprecated
func (*CancellationReq) Descriptor() ([]byte, []int)
Deprecated: Use CancellationReq.ProtoReflect.Descriptor instead.
func (*CancellationReq) GetToken ¶
func (x *CancellationReq) GetToken() string
func (*CancellationReq) ProtoMessage ¶
func (*CancellationReq) ProtoMessage()
func (*CancellationReq) ProtoReflect ¶
func (x *CancellationReq) ProtoReflect() protoreflect.Message
func (*CancellationReq) Reset ¶
func (x *CancellationReq) Reset()
func (*CancellationReq) String ¶
func (x *CancellationReq) String() string
type CancellationResp ¶
type CancellationResp struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*CancellationResp) Descriptor
deprecated
func (*CancellationResp) Descriptor() ([]byte, []int)
Deprecated: Use CancellationResp.ProtoReflect.Descriptor instead.
func (*CancellationResp) GetMessage ¶
func (x *CancellationResp) GetMessage() string
func (*CancellationResp) ProtoMessage ¶
func (*CancellationResp) ProtoMessage()
func (*CancellationResp) ProtoReflect ¶
func (x *CancellationResp) ProtoReflect() protoreflect.Message
func (*CancellationResp) Reset ¶
func (x *CancellationResp) Reset()
func (*CancellationResp) String ¶
func (x *CancellationResp) String() string
type Class ¶ added in v0.1.5
type Class struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*Class) Descriptor
deprecated
added in
v0.1.5
func (*Class) ProtoMessage ¶ added in v0.1.5
func (*Class) ProtoMessage()
func (*Class) ProtoReflect ¶ added in v0.1.5
func (x *Class) ProtoReflect() protoreflect.Message
type GetUserListReq ¶
type GetUserListReq struct {
Page uint32 `protobuf:"varint,1,opt,name=Page,proto3" json:"Page,omitempty"`
Size uint32 `protobuf:"varint,2,opt,name=Size,proto3" json:"Size,omitempty"`
Sort UserListSort `protobuf:"varint,3,opt,name=Sort,proto3,enum=user.UserListSort" json:"Sort,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserListReq) Descriptor
deprecated
func (*GetUserListReq) Descriptor() ([]byte, []int)
Deprecated: Use GetUserListReq.ProtoReflect.Descriptor instead.
func (*GetUserListReq) GetPage ¶
func (x *GetUserListReq) GetPage() uint32
func (*GetUserListReq) GetSize ¶
func (x *GetUserListReq) GetSize() uint32
func (*GetUserListReq) GetSort ¶
func (x *GetUserListReq) GetSort() UserListSort
func (*GetUserListReq) ProtoMessage ¶
func (*GetUserListReq) ProtoMessage()
func (*GetUserListReq) ProtoReflect ¶
func (x *GetUserListReq) ProtoReflect() protoreflect.Message
func (*GetUserListReq) Reset ¶
func (x *GetUserListReq) Reset()
func (*GetUserListReq) String ¶
func (x *GetUserListReq) String() string
type GetUserListResp ¶
type GetUserListResp struct {
UserInfo []*UserInfo `protobuf:"bytes,1,rep,name=UserInfo,proto3" json:"UserInfo,omitempty"`
// contains filtered or unexported fields
}
func (*GetUserListResp) Descriptor
deprecated
func (*GetUserListResp) Descriptor() ([]byte, []int)
Deprecated: Use GetUserListResp.ProtoReflect.Descriptor instead.
func (*GetUserListResp) GetUserInfo ¶
func (x *GetUserListResp) GetUserInfo() []*UserInfo
func (*GetUserListResp) ProtoMessage ¶
func (*GetUserListResp) ProtoMessage()
func (*GetUserListResp) ProtoReflect ¶
func (x *GetUserListResp) ProtoReflect() protoreflect.Message
func (*GetUserListResp) Reset ¶
func (x *GetUserListResp) Reset()
func (*GetUserListResp) String ¶
func (x *GetUserListResp) String() string
type Info ¶ added in v0.1.5
type Info struct {
Data string `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"`
Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"`
// contains filtered or unexported fields
}
func (*Info) Descriptor
deprecated
added in
v0.1.5
func (*Info) ProtoMessage ¶ added in v0.1.5
func (*Info) ProtoMessage()
func (*Info) ProtoReflect ¶ added in v0.1.5
func (x *Info) ProtoReflect() protoreflect.Message
type LoginReq ¶
type LoginReq struct {
UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
P string `protobuf:"bytes,2,opt,name=P,proto3" json:"P,omitempty"`
// contains filtered or unexported fields
}
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetUserName ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginResp ¶
type LoginResp struct {
UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
ID uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
Token string `protobuf:"bytes,4,opt,name=Token,proto3" json:"Token,omitempty"`
// contains filtered or unexported fields
}
func (*LoginResp) Descriptor
deprecated
func (*LoginResp) GetUserName ¶
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
type Msg ¶ added in v0.1.5
type Msg struct {
Arrays []int32 `protobuf:"varint,1,rep,packed,name=arrays,proto3" json:"arrays,omitempty"`
// contains filtered or unexported fields
}
func (*Msg) Descriptor
deprecated
added in
v0.1.5
func (*Msg) ProtoMessage ¶ added in v0.1.5
func (*Msg) ProtoMessage()
func (*Msg) ProtoReflect ¶ added in v0.1.5
func (x *Msg) ProtoReflect() protoreflect.Message
type RegisterUserReq ¶
type RegisterUserReq struct {
UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
Pwd string `protobuf:"bytes,2,opt,name=Pwd,proto3" json:"Pwd,omitempty"`
Sex UserSex `protobuf:"varint,4,opt,name=Sex,proto3,enum=user.UserSex" json:"Sex,omitempty"`
Info *Info `protobuf:"bytes,5,opt,name=Info,proto3" json:"Info,omitempty"`
Class *Class `protobuf:"bytes,6,opt,name=class,proto3" json:"class,omitempty"`
Week Week `protobuf:"varint,7,opt,name=week,proto3,enum=user.Week" json:"week,omitempty"`
Msg *Msg `protobuf:"bytes,8,opt,name=msg,proto3" json:"msg,omitempty"`
Article *Article `protobuf:"bytes,9,opt,name=article,proto3" json:"article,omitempty"`
Student *Student `protobuf:"bytes,10,opt,name=student,proto3" json:"student,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterUserReq) Descriptor
deprecated
func (*RegisterUserReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserReq.ProtoReflect.Descriptor instead.
func (*RegisterUserReq) GetArticle ¶ added in v0.1.5
func (x *RegisterUserReq) GetArticle() *Article
func (*RegisterUserReq) GetClass ¶ added in v0.1.5
func (x *RegisterUserReq) GetClass() *Class
func (*RegisterUserReq) GetInfo ¶ added in v0.1.5
func (x *RegisterUserReq) GetInfo() *Info
func (*RegisterUserReq) GetMsg ¶ added in v0.1.5
func (x *RegisterUserReq) GetMsg() *Msg
func (*RegisterUserReq) GetPwd ¶ added in v0.1.5
func (x *RegisterUserReq) GetPwd() string
func (*RegisterUserReq) GetSex ¶
func (x *RegisterUserReq) GetSex() UserSex
func (*RegisterUserReq) GetStudent ¶ added in v0.1.5
func (x *RegisterUserReq) GetStudent() *Student
func (*RegisterUserReq) GetUserName ¶
func (x *RegisterUserReq) GetUserName() string
func (*RegisterUserReq) GetWeek ¶ added in v0.1.5
func (x *RegisterUserReq) GetWeek() Week
func (*RegisterUserReq) ProtoMessage ¶
func (*RegisterUserReq) ProtoMessage()
func (*RegisterUserReq) ProtoReflect ¶
func (x *RegisterUserReq) ProtoReflect() protoreflect.Message
func (*RegisterUserReq) Reset ¶
func (x *RegisterUserReq) Reset()
func (*RegisterUserReq) String ¶
func (x *RegisterUserReq) String() string
type RegisterUserResp ¶
type RegisterUserResp struct {
UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
ID uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*RegisterUserResp) Descriptor
deprecated
func (*RegisterUserResp) Descriptor() ([]byte, []int)
Deprecated: Use RegisterUserResp.ProtoReflect.Descriptor instead.
func (*RegisterUserResp) GetID ¶
func (x *RegisterUserResp) GetID() uint32
func (*RegisterUserResp) GetUserName ¶
func (x *RegisterUserResp) GetUserName() string
func (*RegisterUserResp) ProtoMessage ¶
func (*RegisterUserResp) ProtoMessage()
func (*RegisterUserResp) ProtoReflect ¶
func (x *RegisterUserResp) ProtoReflect() protoreflect.Message
func (*RegisterUserResp) Reset ¶
func (x *RegisterUserResp) Reset()
func (*RegisterUserResp) String ¶
func (x *RegisterUserResp) String() string
type Student ¶ added in v0.1.5
type Student struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //id
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` //学生姓名
Score map[string]int32 `` //学科 分数的map
/* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Student) Descriptor
deprecated
added in
v0.1.5
func (*Student) ProtoMessage ¶ added in v0.1.5
func (*Student) ProtoMessage()
func (*Student) ProtoReflect ¶ added in v0.1.5
func (x *Student) ProtoReflect() protoreflect.Message
type UnimplementedUserServer ¶
type UnimplementedUserServer struct {
}
UnimplementedUserServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServer) Cancellation ¶
func (UnimplementedUserServer) Cancellation(context.Context, *CancellationReq) (*CancellationResp, error)
func (UnimplementedUserServer) GetUserList ¶
func (UnimplementedUserServer) GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error)
func (UnimplementedUserServer) RegisterUser ¶
func (UnimplementedUserServer) RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error)
func (UnimplementedUserServer) UploadImg ¶
func (UnimplementedUserServer) UploadImg(context.Context, *UploadImgReq) (*UploadImgResp, error)
func (UnimplementedUserServer) UserInfo ¶
func (UnimplementedUserServer) UserInfo(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 UploadImgReq ¶
type UploadImgReq struct {
FileType UploadImgType `protobuf:"varint,1,opt,name=FileType,proto3,enum=user.UploadImgType" json:"FileType,omitempty"`
Img []byte `protobuf:"bytes,2,opt,name=img,proto3" json:"img,omitempty"`
// contains filtered or unexported fields
}
func (*UploadImgReq) Descriptor
deprecated
func (*UploadImgReq) Descriptor() ([]byte, []int)
Deprecated: Use UploadImgReq.ProtoReflect.Descriptor instead.
func (*UploadImgReq) GetFileType ¶
func (x *UploadImgReq) GetFileType() UploadImgType
func (*UploadImgReq) GetImg ¶
func (x *UploadImgReq) GetImg() []byte
func (*UploadImgReq) ProtoMessage ¶
func (*UploadImgReq) ProtoMessage()
func (*UploadImgReq) ProtoReflect ¶
func (x *UploadImgReq) ProtoReflect() protoreflect.Message
func (*UploadImgReq) Reset ¶
func (x *UploadImgReq) Reset()
func (*UploadImgReq) String ¶
func (x *UploadImgReq) String() string
type UploadImgResp ¶
type UploadImgResp struct {
Message string `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
Code UploadStatusCode `protobuf:"varint,2,opt,name=Code,proto3,enum=user.UploadStatusCode" json:"Code,omitempty"`
// contains filtered or unexported fields
}
func (*UploadImgResp) Descriptor
deprecated
func (*UploadImgResp) Descriptor() ([]byte, []int)
Deprecated: Use UploadImgResp.ProtoReflect.Descriptor instead.
func (*UploadImgResp) GetCode ¶
func (x *UploadImgResp) GetCode() UploadStatusCode
func (*UploadImgResp) GetMessage ¶
func (x *UploadImgResp) GetMessage() string
func (*UploadImgResp) ProtoMessage ¶
func (*UploadImgResp) ProtoMessage()
func (*UploadImgResp) ProtoReflect ¶
func (x *UploadImgResp) ProtoReflect() protoreflect.Message
func (*UploadImgResp) Reset ¶
func (x *UploadImgResp) Reset()
func (*UploadImgResp) String ¶
func (x *UploadImgResp) String() string
type UploadImgType ¶
type UploadImgType int32
const ( UploadImgType_PNG UploadImgType = 0 UploadImgType_JPG UploadImgType = 1 )
func (UploadImgType) Descriptor ¶
func (UploadImgType) Descriptor() protoreflect.EnumDescriptor
func (UploadImgType) Enum ¶
func (x UploadImgType) Enum() *UploadImgType
func (UploadImgType) EnumDescriptor
deprecated
func (UploadImgType) EnumDescriptor() ([]byte, []int)
Deprecated: Use UploadImgType.Descriptor instead.
func (UploadImgType) Number ¶
func (x UploadImgType) Number() protoreflect.EnumNumber
func (UploadImgType) String ¶
func (x UploadImgType) String() string
func (UploadImgType) Type ¶
func (UploadImgType) Type() protoreflect.EnumType
type UploadStatusCode ¶
type UploadStatusCode int32
const ( UploadStatusCode_Unknown UploadStatusCode = 0 UploadStatusCode_Ok UploadStatusCode = 1 UploadStatusCode_Failed UploadStatusCode = 2 )
func (UploadStatusCode) Descriptor ¶
func (UploadStatusCode) Descriptor() protoreflect.EnumDescriptor
func (UploadStatusCode) Enum ¶
func (x UploadStatusCode) Enum() *UploadStatusCode
func (UploadStatusCode) EnumDescriptor
deprecated
func (UploadStatusCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use UploadStatusCode.Descriptor instead.
func (UploadStatusCode) Number ¶
func (x UploadStatusCode) Number() protoreflect.EnumNumber
func (UploadStatusCode) String ¶
func (x UploadStatusCode) String() string
func (UploadStatusCode) Type ¶
func (UploadStatusCode) Type() protoreflect.EnumType
type UserClient ¶
type UserClient interface {
RegisterUser(ctx context.Context, in *RegisterUserReq, opts ...grpc.CallOption) (*RegisterUserResp, error)
Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginResp, error)
Cancellation(ctx context.Context, in *CancellationReq, opts ...grpc.CallOption) (*CancellationResp, error)
UploadImg(ctx context.Context, in *UploadImgReq, opts ...grpc.CallOption) (*UploadImgResp, error)
GetUserList(ctx context.Context, in *GetUserListReq, opts ...grpc.CallOption) (*GetUserListResp, error)
UserInfo(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 UserInfo ¶
type UserInfo struct {
UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
ID uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
W uint32 `protobuf:"varint,4,opt,name=W,proto3" json:"W,omitempty"`
A uint32 `protobuf:"varint,5,opt,name=A,proto3" json:"A,omitempty"`
G uint32 `protobuf:"varint,6,opt,name=G,proto3" json:"G,omitempty"`
T uint32 `protobuf:"varint,7,opt,name=T,proto3" json:"T,omitempty"`
// contains filtered or unexported fields
}
func (*UserInfo) Descriptor
deprecated
func (*UserInfo) GetUserName ¶
func (*UserInfo) ProtoMessage ¶
func (*UserInfo) ProtoMessage()
func (*UserInfo) ProtoReflect ¶
func (x *UserInfo) ProtoReflect() protoreflect.Message
type UserInfoReq ¶
type UserInfoReq struct {
ID uint32 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*UserInfoReq) Descriptor
deprecated
func (*UserInfoReq) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoReq.ProtoReflect.Descriptor instead.
func (*UserInfoReq) GetID ¶
func (x *UserInfoReq) GetID() uint32
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 {
UserName string `protobuf:"bytes,1,opt,name=UserName,proto3" json:"UserName,omitempty"`
ID uint32 `protobuf:"varint,3,opt,name=ID,proto3" json:"ID,omitempty"`
// contains filtered or unexported fields
}
func (*UserInfoResp) Descriptor
deprecated
func (*UserInfoResp) Descriptor() ([]byte, []int)
Deprecated: Use UserInfoResp.ProtoReflect.Descriptor instead.
func (*UserInfoResp) GetID ¶
func (x *UserInfoResp) GetID() uint32
func (*UserInfoResp) GetUserName ¶
func (x *UserInfoResp) GetUserName() string
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 UserListSort ¶
type UserListSort int32
const ( UserListSort_ASC UserListSort = 0 UserListSort_Desc UserListSort = 1 )
func (UserListSort) Descriptor ¶
func (UserListSort) Descriptor() protoreflect.EnumDescriptor
func (UserListSort) Enum ¶
func (x UserListSort) Enum() *UserListSort
func (UserListSort) EnumDescriptor
deprecated
func (UserListSort) EnumDescriptor() ([]byte, []int)
Deprecated: Use UserListSort.Descriptor instead.
func (UserListSort) Number ¶
func (x UserListSort) Number() protoreflect.EnumNumber
func (UserListSort) String ¶
func (x UserListSort) String() string
func (UserListSort) Type ¶
func (UserListSort) Type() protoreflect.EnumType
type UserServer ¶
type UserServer interface {
RegisterUser(context.Context, *RegisterUserReq) (*RegisterUserResp, error)
Login(context.Context, *LoginReq) (*LoginResp, error)
Cancellation(context.Context, *CancellationReq) (*CancellationResp, error)
UploadImg(context.Context, *UploadImgReq) (*UploadImgResp, error)
GetUserList(context.Context, *GetUserListReq) (*GetUserListResp, error)
UserInfo(context.Context, *UserInfoReq) (*UserInfoResp, error)
// contains filtered or unexported methods
}
UserServer is the server API for User service. All implementations must embed UnimplementedUserServer for forward compatibility
type UserSex ¶
type UserSex int32
func (UserSex) Descriptor ¶
func (UserSex) Descriptor() protoreflect.EnumDescriptor
func (UserSex) EnumDescriptor
deprecated
func (UserSex) Number ¶
func (x UserSex) Number() protoreflect.EnumNumber
func (UserSex) Type ¶
func (UserSex) Type() protoreflect.EnumType
type Week ¶ added in v0.1.5
type Week int32
func (Week) Descriptor ¶ added in v0.1.5
func (Week) Descriptor() protoreflect.EnumDescriptor
func (Week) EnumDescriptor
deprecated
added in
v0.1.5
func (Week) Number ¶ added in v0.1.5
func (x Week) Number() protoreflect.EnumNumber
func (Week) Type ¶ added in v0.1.5
func (Week) Type() protoreflect.EnumType