Documentation ¶
Index ¶
- Variables
- type LoginReq
- func (*LoginReq) Descriptor() ([]byte, []int)deprecated
- func (x *LoginReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *LoginReq) FastWrite(buf []byte) (offset int)
- func (x *LoginReq) GetEmail() string
- func (x *LoginReq) GetPassword() string
- func (*LoginReq) ProtoMessage()
- func (x *LoginReq) ProtoReflect() protoreflect.Message
- func (x *LoginReq) Reset()
- func (x *LoginReq) Size() (n int)
- func (x *LoginReq) String() string
- type LoginResp
- func (*LoginResp) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *LoginResp) FastWrite(buf []byte) (offset int)
- func (x *LoginResp) GetUserId() int32
- func (*LoginResp) ProtoMessage()
- func (x *LoginResp) ProtoReflect() protoreflect.Message
- func (x *LoginResp) Reset()
- func (x *LoginResp) Size() (n int)
- func (x *LoginResp) String() string
- type RegisterReq
- func (*RegisterReq) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RegisterReq) FastWrite(buf []byte) (offset int)
- func (x *RegisterReq) GetEmail() string
- func (x *RegisterReq) GetPassword() string
- func (x *RegisterReq) GetPasswordConfirm() string
- func (*RegisterReq) ProtoMessage()
- func (x *RegisterReq) ProtoReflect() protoreflect.Message
- func (x *RegisterReq) Reset()
- func (x *RegisterReq) Size() (n int)
- func (x *RegisterReq) String() string
- type RegisterResp
- func (*RegisterResp) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *RegisterResp) FastWrite(buf []byte) (offset int)
- func (x *RegisterResp) GetUserId() int32
- func (*RegisterResp) ProtoMessage()
- func (x *RegisterResp) ProtoReflect() protoreflect.Message
- func (x *RegisterResp) Reset()
- func (x *RegisterResp) Size() (n int)
- func (x *RegisterResp) String() string
- type UserService
Constants ¶
This section is empty.
Variables ¶
View Source
var File_rpc_user_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type LoginReq ¶
type LoginReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginReq) Descriptor
deprecated
func (*LoginReq) GetPassword ¶
func (*LoginReq) ProtoMessage ¶
func (*LoginReq) ProtoMessage()
func (*LoginReq) ProtoReflect ¶
func (x *LoginReq) ProtoReflect() protoreflect.Message
type LoginResp ¶
type LoginResp struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*LoginResp) Descriptor
deprecated
func (*LoginResp) ProtoMessage ¶
func (*LoginResp) ProtoMessage()
func (*LoginResp) ProtoReflect ¶
func (x *LoginResp) ProtoReflect() protoreflect.Message
type RegisterReq ¶
type RegisterReq struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` PasswordConfirm string `protobuf:"bytes,3,opt,name=password_confirm,json=passwordConfirm,proto3" json:"password_confirm,omitempty"` // contains filtered or unexported fields }
func (*RegisterReq) Descriptor
deprecated
func (*RegisterReq) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.
func (*RegisterReq) FastWrite ¶
func (x *RegisterReq) FastWrite(buf []byte) (offset int)
func (*RegisterReq) GetEmail ¶
func (x *RegisterReq) GetEmail() string
func (*RegisterReq) GetPassword ¶
func (x *RegisterReq) GetPassword() string
func (*RegisterReq) GetPasswordConfirm ¶
func (x *RegisterReq) GetPasswordConfirm() string
func (*RegisterReq) ProtoMessage ¶
func (*RegisterReq) ProtoMessage()
func (*RegisterReq) ProtoReflect ¶
func (x *RegisterReq) ProtoReflect() protoreflect.Message
func (*RegisterReq) Reset ¶
func (x *RegisterReq) Reset()
func (*RegisterReq) Size ¶
func (x *RegisterReq) Size() (n int)
func (*RegisterReq) String ¶
func (x *RegisterReq) String() string
type RegisterResp ¶
type RegisterResp struct { UserId int32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResp) Descriptor
deprecated
func (*RegisterResp) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResp.ProtoReflect.Descriptor instead.
func (*RegisterResp) FastWrite ¶
func (x *RegisterResp) FastWrite(buf []byte) (offset int)
func (*RegisterResp) GetUserId ¶
func (x *RegisterResp) GetUserId() int32
func (*RegisterResp) ProtoMessage ¶
func (*RegisterResp) ProtoMessage()
func (*RegisterResp) ProtoReflect ¶
func (x *RegisterResp) ProtoReflect() protoreflect.Message
func (*RegisterResp) Reset ¶
func (x *RegisterResp) Reset()
func (*RegisterResp) Size ¶
func (x *RegisterResp) Size() (n int)
func (*RegisterResp) String ¶
func (x *RegisterResp) String() string
type UserService ¶
type UserService interface { Register(ctx context.Context, req *RegisterReq) (res *RegisterResp, err error) Login(ctx context.Context, req *LoginReq) (res *LoginResp, err error) }
Click to show internal directories.
Click to hide internal directories.