Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceHTTPServer(r gin.IRouter, srv UserServiceHTTPServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type BatchGetUsersReply
- func (*BatchGetUsersReply) Descriptor() ([]byte, []int)
- func (m *BatchGetUsersReply) GetUsers() []*User
- func (m *BatchGetUsersReply) Marshal() (dAtA []byte, err error)
- func (m *BatchGetUsersReply) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchGetUsersReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BatchGetUsersReply) ProtoMessage()
- func (m *BatchGetUsersReply) Reset()
- func (m *BatchGetUsersReply) Size() (n int)
- func (m *BatchGetUsersReply) String() string
- func (m *BatchGetUsersReply) Unmarshal(dAtA []byte) error
- func (m *BatchGetUsersReply) Validate() error
- func (m *BatchGetUsersReply) ValidateAll() error
- func (m *BatchGetUsersReply) XXX_DiscardUnknown()
- func (m *BatchGetUsersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchGetUsersReply) XXX_Merge(src proto.Message)
- func (m *BatchGetUsersReply) XXX_Size() int
- func (m *BatchGetUsersReply) XXX_Unmarshal(b []byte) error
- type BatchGetUsersReplyMultiError
- type BatchGetUsersReplyValidationError
- func (e BatchGetUsersReplyValidationError) Cause() error
- func (e BatchGetUsersReplyValidationError) Error() string
- func (e BatchGetUsersReplyValidationError) ErrorName() string
- func (e BatchGetUsersReplyValidationError) Field() string
- func (e BatchGetUsersReplyValidationError) Key() bool
- func (e BatchGetUsersReplyValidationError) Reason() string
- type BatchGetUsersRequest
- func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)
- func (m *BatchGetUsersRequest) GetIds() []int64
- func (m *BatchGetUsersRequest) Marshal() (dAtA []byte, err error)
- func (m *BatchGetUsersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchGetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BatchGetUsersRequest) ProtoMessage()
- func (m *BatchGetUsersRequest) Reset()
- func (m *BatchGetUsersRequest) Size() (n int)
- func (m *BatchGetUsersRequest) String() string
- func (m *BatchGetUsersRequest) Unmarshal(dAtA []byte) error
- func (m *BatchGetUsersRequest) Validate() error
- func (m *BatchGetUsersRequest) ValidateAll() error
- func (m *BatchGetUsersRequest) XXX_DiscardUnknown()
- func (m *BatchGetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchGetUsersRequest) XXX_Merge(src proto.Message)
- func (m *BatchGetUsersRequest) XXX_Size() int
- func (m *BatchGetUsersRequest) XXX_Unmarshal(b []byte) error
- type BatchGetUsersRequestMultiError
- type BatchGetUsersRequestValidationError
- func (e BatchGetUsersRequestValidationError) Cause() error
- func (e BatchGetUsersRequestValidationError) Error() string
- func (e BatchGetUsersRequestValidationError) ErrorName() string
- func (e BatchGetUsersRequestValidationError) Field() string
- func (e BatchGetUsersRequestValidationError) Key() bool
- func (e BatchGetUsersRequestValidationError) Reason() string
- type CreateUserReply
- func (*CreateUserReply) Descriptor() ([]byte, []int)
- func (m *CreateUserReply) GetEmail() string
- func (m *CreateUserReply) GetId() int64
- func (m *CreateUserReply) GetUsername() string
- func (m *CreateUserReply) Marshal() (dAtA []byte, err error)
- func (m *CreateUserReply) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateUserReply) ProtoMessage()
- func (m *CreateUserReply) Reset()
- func (m *CreateUserReply) Size() (n int)
- func (m *CreateUserReply) String() string
- func (m *CreateUserReply) Unmarshal(dAtA []byte) error
- func (m *CreateUserReply) Validate() error
- func (m *CreateUserReply) ValidateAll() error
- func (m *CreateUserReply) XXX_DiscardUnknown()
- func (m *CreateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateUserReply) XXX_Merge(src proto.Message)
- func (m *CreateUserReply) XXX_Size() int
- func (m *CreateUserReply) XXX_Unmarshal(b []byte) error
- type CreateUserReplyMultiError
- type CreateUserReplyValidationError
- func (e CreateUserReplyValidationError) Cause() error
- func (e CreateUserReplyValidationError) Error() string
- func (e CreateUserReplyValidationError) ErrorName() string
- func (e CreateUserReplyValidationError) Field() string
- func (e CreateUserReplyValidationError) Key() bool
- func (e CreateUserReplyValidationError) Reason() string
- type CreateUserRequest
- func (*CreateUserRequest) Descriptor() ([]byte, []int)
- func (m *CreateUserRequest) GetEmail() string
- func (m *CreateUserRequest) GetPassword() string
- func (m *CreateUserRequest) GetUsername() string
- func (m *CreateUserRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateUserRequest) ProtoMessage()
- func (m *CreateUserRequest) Reset()
- func (m *CreateUserRequest) Size() (n int)
- func (m *CreateUserRequest) String() string
- func (m *CreateUserRequest) Unmarshal(dAtA []byte) error
- func (m *CreateUserRequest) Validate() error
- func (m *CreateUserRequest) ValidateAll() error
- func (m *CreateUserRequest) XXX_DiscardUnknown()
- func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateUserRequest) XXX_Merge(src proto.Message)
- func (m *CreateUserRequest) XXX_Size() int
- func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error
- type CreateUserRequestMultiError
- type CreateUserRequestValidationError
- func (e CreateUserRequestValidationError) Cause() error
- func (e CreateUserRequestValidationError) Error() string
- func (e CreateUserRequestValidationError) ErrorName() string
- func (e CreateUserRequestValidationError) Field() string
- func (e CreateUserRequestValidationError) Key() bool
- func (e CreateUserRequestValidationError) Reason() string
- type GenderType
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)
- func (m *GetUserReply) GetUser() *User
- func (m *GetUserReply) Marshal() (dAtA []byte, err error)
- func (m *GetUserReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetUserReply) ProtoMessage()
- func (m *GetUserReply) Reset()
- func (m *GetUserReply) Size() (n int)
- func (m *GetUserReply) String() string
- func (m *GetUserReply) Unmarshal(dAtA []byte) error
- func (m *GetUserReply) Validate() error
- func (m *GetUserReply) ValidateAll() error
- func (m *GetUserReply) XXX_DiscardUnknown()
- func (m *GetUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserReply) XXX_Merge(src proto.Message)
- func (m *GetUserReply) XXX_Size() int
- func (m *GetUserReply) XXX_Unmarshal(b []byte) error
- type GetUserReplyMultiError
- type GetUserReplyValidationError
- func (e GetUserReplyValidationError) Cause() error
- func (e GetUserReplyValidationError) Error() string
- func (e GetUserReplyValidationError) ErrorName() string
- func (e GetUserReplyValidationError) Field() string
- func (e GetUserReplyValidationError) Key() bool
- func (e GetUserReplyValidationError) Reason() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)
- func (m *GetUserRequest) GetId() int64
- func (m *GetUserRequest) Marshal() (dAtA []byte, err error)
- func (m *GetUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetUserRequest) ProtoMessage()
- func (m *GetUserRequest) Reset()
- func (m *GetUserRequest) Size() (n int)
- func (m *GetUserRequest) String() string
- func (m *GetUserRequest) Unmarshal(dAtA []byte) error
- func (m *GetUserRequest) Validate() error
- func (m *GetUserRequest) ValidateAll() error
- func (m *GetUserRequest) XXX_DiscardUnknown()
- func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetUserRequest) XXX_Merge(src proto.Message)
- func (m *GetUserRequest) XXX_Size() int
- func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
- type GetUserRequestMultiError
- type GetUserRequestValidationError
- func (e GetUserRequestValidationError) Cause() error
- func (e GetUserRequestValidationError) Error() string
- func (e GetUserRequestValidationError) ErrorName() string
- func (e GetUserRequestValidationError) Field() string
- func (e GetUserRequestValidationError) Key() bool
- func (e GetUserRequestValidationError) Reason() string
- type LoginReply
- func (*LoginReply) Descriptor() ([]byte, []int)
- func (m *LoginReply) GetAccessToken() string
- func (m *LoginReply) GetId() int64
- func (m *LoginReply) GetRefreshToken() string
- func (m *LoginReply) Marshal() (dAtA []byte, err error)
- func (m *LoginReply) MarshalTo(dAtA []byte) (int, error)
- func (m *LoginReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LoginReply) ProtoMessage()
- func (m *LoginReply) Reset()
- func (m *LoginReply) Size() (n int)
- func (m *LoginReply) String() string
- func (m *LoginReply) Unmarshal(dAtA []byte) error
- func (m *LoginReply) Validate() error
- func (m *LoginReply) ValidateAll() error
- func (m *LoginReply) XXX_DiscardUnknown()
- func (m *LoginReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginReply) XXX_Merge(src proto.Message)
- func (m *LoginReply) XXX_Size() int
- func (m *LoginReply) XXX_Unmarshal(b []byte) error
- type LoginReplyMultiError
- type LoginReplyValidationError
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)
- func (m *LoginRequest) GetEmail() string
- func (m *LoginRequest) GetPassword() string
- func (m *LoginRequest) GetUsername() string
- func (m *LoginRequest) Marshal() (dAtA []byte, err error)
- func (m *LoginRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LoginRequest) ProtoMessage()
- func (m *LoginRequest) Reset()
- func (m *LoginRequest) Size() (n int)
- func (m *LoginRequest) String() string
- func (m *LoginRequest) Unmarshal(dAtA []byte) error
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- func (m *LoginRequest) XXX_DiscardUnknown()
- func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LoginRequest) XXX_Merge(src proto.Message)
- func (m *LoginRequest) XXX_Size() int
- func (m *LoginRequest) XXX_Unmarshal(b []byte) error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LogoutReply
- func (*LogoutReply) Descriptor() ([]byte, []int)
- func (m *LogoutReply) Marshal() (dAtA []byte, err error)
- func (m *LogoutReply) MarshalTo(dAtA []byte) (int, error)
- func (m *LogoutReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogoutReply) ProtoMessage()
- func (m *LogoutReply) Reset()
- func (m *LogoutReply) Size() (n int)
- func (m *LogoutReply) String() string
- func (m *LogoutReply) Unmarshal(dAtA []byte) error
- func (m *LogoutReply) XXX_DiscardUnknown()
- func (m *LogoutReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogoutReply) XXX_Merge(src proto.Message)
- func (m *LogoutReply) XXX_Size() int
- func (m *LogoutReply) XXX_Unmarshal(b []byte) error
- type LogoutRequest
- func (*LogoutRequest) Descriptor() ([]byte, []int)
- func (m *LogoutRequest) GetAccessToken() string
- func (m *LogoutRequest) GetId() int64
- func (m *LogoutRequest) Marshal() (dAtA []byte, err error)
- func (m *LogoutRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *LogoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LogoutRequest) ProtoMessage()
- func (m *LogoutRequest) Reset()
- func (m *LogoutRequest) Size() (n int)
- func (m *LogoutRequest) String() string
- func (m *LogoutRequest) Unmarshal(dAtA []byte) error
- func (m *LogoutRequest) Validate() error
- func (m *LogoutRequest) ValidateAll() error
- func (m *LogoutRequest) XXX_DiscardUnknown()
- func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LogoutRequest) XXX_Merge(src proto.Message)
- func (m *LogoutRequest) XXX_Size() int
- func (m *LogoutRequest) XXX_Unmarshal(b []byte) error
- type LogoutRequestMultiError
- type LogoutRequestValidationError
- func (e LogoutRequestValidationError) Cause() error
- func (e LogoutRequestValidationError) Error() string
- func (e LogoutRequestValidationError) ErrorName() string
- func (e LogoutRequestValidationError) Field() string
- func (e LogoutRequestValidationError) Key() bool
- func (e LogoutRequestValidationError) Reason() string
- type RegisterReply
- func (*RegisterReply) Descriptor() ([]byte, []int)
- func (m *RegisterReply) GetId() int64
- func (m *RegisterReply) GetUsername() string
- func (m *RegisterReply) Marshal() (dAtA []byte, err error)
- func (m *RegisterReply) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterReply) ProtoMessage()
- func (m *RegisterReply) Reset()
- func (m *RegisterReply) Size() (n int)
- func (m *RegisterReply) String() string
- func (m *RegisterReply) Unmarshal(dAtA []byte) error
- func (m *RegisterReply) Validate() error
- func (m *RegisterReply) ValidateAll() error
- func (m *RegisterReply) XXX_DiscardUnknown()
- func (m *RegisterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterReply) XXX_Merge(src proto.Message)
- func (m *RegisterReply) XXX_Size() int
- func (m *RegisterReply) XXX_Unmarshal(b []byte) error
- type RegisterReplyMultiError
- type RegisterReplyValidationError
- func (e RegisterReplyValidationError) Cause() error
- func (e RegisterReplyValidationError) Error() string
- func (e RegisterReplyValidationError) ErrorName() string
- func (e RegisterReplyValidationError) Field() string
- func (e RegisterReplyValidationError) Key() bool
- func (e RegisterReplyValidationError) Reason() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)
- func (m *RegisterRequest) GetEmail() string
- func (m *RegisterRequest) GetPassword() string
- func (m *RegisterRequest) GetUsername() string
- func (m *RegisterRequest) Marshal() (dAtA []byte, err error)
- func (m *RegisterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *RegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RegisterRequest) ProtoMessage()
- func (m *RegisterRequest) Reset()
- func (m *RegisterRequest) Size() (n int)
- func (m *RegisterRequest) String() string
- func (m *RegisterRequest) Unmarshal(dAtA []byte) error
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- func (m *RegisterRequest) XXX_DiscardUnknown()
- func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RegisterRequest) XXX_Merge(src proto.Message)
- func (m *RegisterRequest) XXX_Size() int
- func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type StatusType
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersReply, error)
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
- func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
- func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
- func (UnimplementedUserServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
- func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error)
- func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
- type UnsafeUserServiceServer
- type UpdatePasswordReply
- func (*UpdatePasswordReply) Descriptor() ([]byte, []int)
- func (m *UpdatePasswordReply) Marshal() (dAtA []byte, err error)
- func (m *UpdatePasswordReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdatePasswordReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdatePasswordReply) ProtoMessage()
- func (m *UpdatePasswordReply) Reset()
- func (m *UpdatePasswordReply) Size() (n int)
- func (m *UpdatePasswordReply) String() string
- func (m *UpdatePasswordReply) Unmarshal(dAtA []byte) error
- func (m *UpdatePasswordReply) Validate() error
- func (m *UpdatePasswordReply) ValidateAll() error
- func (m *UpdatePasswordReply) XXX_DiscardUnknown()
- func (m *UpdatePasswordReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePasswordReply) XXX_Merge(src proto.Message)
- func (m *UpdatePasswordReply) XXX_Size() int
- func (m *UpdatePasswordReply) XXX_Unmarshal(b []byte) error
- type UpdatePasswordReplyMultiError
- type UpdatePasswordReplyValidationError
- func (e UpdatePasswordReplyValidationError) Cause() error
- func (e UpdatePasswordReplyValidationError) Error() string
- func (e UpdatePasswordReplyValidationError) ErrorName() string
- func (e UpdatePasswordReplyValidationError) Field() string
- func (e UpdatePasswordReplyValidationError) Key() bool
- func (e UpdatePasswordReplyValidationError) Reason() string
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
- func (m *UpdatePasswordRequest) GetConfirmPassword() string
- func (m *UpdatePasswordRequest) GetId() string
- func (m *UpdatePasswordRequest) GetNewPassword() string
- func (m *UpdatePasswordRequest) GetPassword() string
- func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdatePasswordRequest) ProtoMessage()
- func (m *UpdatePasswordRequest) Reset()
- func (m *UpdatePasswordRequest) Size() (n int)
- func (m *UpdatePasswordRequest) String() string
- func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error
- func (m *UpdatePasswordRequest) Validate() error
- func (m *UpdatePasswordRequest) ValidateAll() error
- func (m *UpdatePasswordRequest) XXX_DiscardUnknown()
- func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)
- func (m *UpdatePasswordRequest) XXX_Size() int
- func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error
- type UpdatePasswordRequestMultiError
- type UpdatePasswordRequestValidationError
- func (e UpdatePasswordRequestValidationError) Cause() error
- func (e UpdatePasswordRequestValidationError) Error() string
- func (e UpdatePasswordRequestValidationError) ErrorName() string
- func (e UpdatePasswordRequestValidationError) Field() string
- func (e UpdatePasswordRequestValidationError) Key() bool
- func (e UpdatePasswordRequestValidationError) Reason() string
- type UpdateUserReply
- func (*UpdateUserReply) Descriptor() ([]byte, []int)
- func (m *UpdateUserReply) GetAvatar() string
- func (m *UpdateUserReply) GetBio() string
- func (m *UpdateUserReply) GetBirthday() string
- func (m *UpdateUserReply) GetEmail() string
- func (m *UpdateUserReply) GetGender() GenderType
- func (m *UpdateUserReply) GetLoginAt() int64
- func (m *UpdateUserReply) GetNickname() string
- func (m *UpdateUserReply) GetPhone() string
- func (m *UpdateUserReply) GetStatus() StatusType
- func (m *UpdateUserReply) GetUpdatedAt() int64
- func (m *UpdateUserReply) GetUserId() int64
- func (m *UpdateUserReply) GetUsername() string
- func (m *UpdateUserReply) Marshal() (dAtA []byte, err error)
- func (m *UpdateUserReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateUserReply) ProtoMessage()
- func (m *UpdateUserReply) Reset()
- func (m *UpdateUserReply) Size() (n int)
- func (m *UpdateUserReply) String() string
- func (m *UpdateUserReply) Unmarshal(dAtA []byte) error
- func (m *UpdateUserReply) Validate() error
- func (m *UpdateUserReply) ValidateAll() error
- func (m *UpdateUserReply) XXX_DiscardUnknown()
- func (m *UpdateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateUserReply) XXX_Merge(src proto.Message)
- func (m *UpdateUserReply) XXX_Size() int
- func (m *UpdateUserReply) XXX_Unmarshal(b []byte) error
- type UpdateUserReplyMultiError
- type UpdateUserReplyValidationError
- func (e UpdateUserReplyValidationError) Cause() error
- func (e UpdateUserReplyValidationError) Error() string
- func (e UpdateUserReplyValidationError) ErrorName() string
- func (e UpdateUserReplyValidationError) Field() string
- func (e UpdateUserReplyValidationError) Key() bool
- func (e UpdateUserReplyValidationError) Reason() string
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)
- func (m *UpdateUserRequest) GetAvatar() string
- func (m *UpdateUserRequest) GetBio() string
- func (m *UpdateUserRequest) GetBirthday() string
- func (m *UpdateUserRequest) GetEmail() string
- func (m *UpdateUserRequest) GetGender() GenderType
- func (m *UpdateUserRequest) GetLoginAt() int64
- func (m *UpdateUserRequest) GetNickname() string
- func (m *UpdateUserRequest) GetPhone() string
- func (m *UpdateUserRequest) GetStatus() StatusType
- func (m *UpdateUserRequest) GetUpdatedAt() int64
- func (m *UpdateUserRequest) GetUserId() int64
- func (m *UpdateUserRequest) GetUsername() string
- func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateUserRequest) ProtoMessage()
- func (m *UpdateUserRequest) Reset()
- func (m *UpdateUserRequest) Size() (n int)
- func (m *UpdateUserRequest) String() string
- func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error
- func (m *UpdateUserRequest) Validate() error
- func (m *UpdateUserRequest) ValidateAll() error
- func (m *UpdateUserRequest) XXX_DiscardUnknown()
- func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateUserRequest) XXX_Merge(src proto.Message)
- func (m *UpdateUserRequest) XXX_Size() int
- func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
- type UpdateUserRequestMultiError
- type UpdateUserRequestValidationError
- func (e UpdateUserRequestValidationError) Cause() error
- func (e UpdateUserRequestValidationError) Error() string
- func (e UpdateUserRequestValidationError) ErrorName() string
- func (e UpdateUserRequestValidationError) Field() string
- func (e UpdateUserRequestValidationError) Key() bool
- func (e UpdateUserRequestValidationError) Reason() string
- type User
- func (*User) Descriptor() ([]byte, []int)
- func (m *User) GetAvatar() string
- func (m *User) GetBio() string
- func (m *User) GetBirthday() string
- func (m *User) GetCreatedAt() int64
- func (m *User) GetEmail() string
- func (m *User) GetGender() GenderType
- func (m *User) GetId() int64
- func (m *User) GetLastLoginAt() int64
- func (m *User) GetNickname() string
- func (m *User) GetPhone() string
- func (m *User) GetStatus() StatusType
- func (m *User) GetUpdatedAt() int64
- func (m *User) GetUsername() string
- func (m *User) Marshal() (dAtA []byte, err error)
- func (m *User) MarshalTo(dAtA []byte) (int, error)
- func (m *User) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*User) ProtoMessage()
- func (m *User) Reset()
- func (m *User) Size() (n int)
- func (m *User) String() string
- func (m *User) Unmarshal(dAtA []byte) error
- func (m *User) Validate() error
- func (m *User) ValidateAll() error
- func (m *User) XXX_DiscardUnknown()
- func (m *User) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *User) XXX_Merge(src proto.Message)
- func (m *User) XXX_Size() int
- func (m *User) XXX_Unmarshal(b []byte) error
- type UserMultiError
- type UserService
- func (s *UserService) BatchGetUsers_0(ctx *gin.Context)
- func (s *UserService) CreateUser_0(ctx *gin.Context)
- func (s *UserService) GetUser_0(ctx *gin.Context)
- func (s *UserService) Login_0(ctx *gin.Context)
- func (s *UserService) Logout_0(ctx *gin.Context)
- func (s *UserService) RegisterService()
- func (s *UserService) Register_0(ctx *gin.Context)
- func (s *UserService) UpdatePassword_0(ctx *gin.Context)
- func (s *UserService) UpdateUser_0(ctx *gin.Context)
- type UserServiceClient
- type UserServiceHTTPServer
- type UserServiceServer
- type UserValidationError
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthUser = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUser = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupUser = fmt.Errorf("proto: unexpected end of group") )
var GenderType_name = map[int32]string{
0: "UNKNOWN",
1: "MALE",
2: "FEMALE",
}
var GenderType_value = map[string]int32{
"UNKNOWN": 0,
"MALE": 1,
"FEMALE": 2,
}
var StatusType_name = map[int32]string{
0: "NORMAL",
1: "DELETE",
2: "Ban",
}
var StatusType_value = map[string]int32{
"NORMAL": 0,
"DELETE": 1,
"Ban": 2,
}
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.v1.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _UserService_Register_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "Logout", Handler: _UserService_Logout_Handler, }, { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "BatchGetUsers", Handler: _UserService_BatchGetUsers_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "UpdatePassword", Handler: _UserService_UpdatePassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/user/v1/user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterUserServiceHTTPServer ¶
func RegisterUserServiceHTTPServer(r gin.IRouter, srv UserServiceHTTPServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type BatchGetUsersReply ¶
type BatchGetUsersReply struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BatchGetUsersReply) Descriptor ¶
func (*BatchGetUsersReply) Descriptor() ([]byte, []int)
func (*BatchGetUsersReply) GetUsers ¶
func (m *BatchGetUsersReply) GetUsers() []*User
func (*BatchGetUsersReply) Marshal ¶
func (m *BatchGetUsersReply) Marshal() (dAtA []byte, err error)
func (*BatchGetUsersReply) MarshalTo ¶
func (m *BatchGetUsersReply) MarshalTo(dAtA []byte) (int, error)
func (*BatchGetUsersReply) MarshalToSizedBuffer ¶
func (m *BatchGetUsersReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BatchGetUsersReply) ProtoMessage ¶
func (*BatchGetUsersReply) ProtoMessage()
func (*BatchGetUsersReply) Reset ¶
func (m *BatchGetUsersReply) Reset()
func (*BatchGetUsersReply) Size ¶
func (m *BatchGetUsersReply) Size() (n int)
func (*BatchGetUsersReply) String ¶
func (m *BatchGetUsersReply) String() string
func (*BatchGetUsersReply) Unmarshal ¶
func (m *BatchGetUsersReply) Unmarshal(dAtA []byte) error
func (*BatchGetUsersReply) Validate ¶
func (m *BatchGetUsersReply) Validate() error
Validate checks the field values on BatchGetUsersReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BatchGetUsersReply) ValidateAll ¶
func (m *BatchGetUsersReply) ValidateAll() error
ValidateAll checks the field values on BatchGetUsersReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchGetUsersReplyMultiError, or nil if none found.
func (*BatchGetUsersReply) XXX_DiscardUnknown ¶
func (m *BatchGetUsersReply) XXX_DiscardUnknown()
func (*BatchGetUsersReply) XXX_Marshal ¶
func (m *BatchGetUsersReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchGetUsersReply) XXX_Merge ¶
func (m *BatchGetUsersReply) XXX_Merge(src proto.Message)
func (*BatchGetUsersReply) XXX_Size ¶
func (m *BatchGetUsersReply) XXX_Size() int
func (*BatchGetUsersReply) XXX_Unmarshal ¶
func (m *BatchGetUsersReply) XXX_Unmarshal(b []byte) error
type BatchGetUsersReplyMultiError ¶
type BatchGetUsersReplyMultiError []error
BatchGetUsersReplyMultiError is an error wrapping multiple validation errors returned by BatchGetUsersReply.ValidateAll() if the designated constraints aren't met.
func (BatchGetUsersReplyMultiError) AllErrors ¶
func (m BatchGetUsersReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchGetUsersReplyMultiError) Error ¶
func (m BatchGetUsersReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchGetUsersReplyValidationError ¶
type BatchGetUsersReplyValidationError struct {
// contains filtered or unexported fields
}
BatchGetUsersReplyValidationError is the validation error returned by BatchGetUsersReply.Validate if the designated constraints aren't met.
func (BatchGetUsersReplyValidationError) Cause ¶
func (e BatchGetUsersReplyValidationError) Cause() error
Cause function returns cause value.
func (BatchGetUsersReplyValidationError) Error ¶
func (e BatchGetUsersReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BatchGetUsersReplyValidationError) ErrorName ¶
func (e BatchGetUsersReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BatchGetUsersReplyValidationError) Field ¶
func (e BatchGetUsersReplyValidationError) Field() string
Field function returns field value.
func (BatchGetUsersReplyValidationError) Key ¶
func (e BatchGetUsersReplyValidationError) Key() bool
Key function returns key value.
func (BatchGetUsersReplyValidationError) Reason ¶
func (e BatchGetUsersReplyValidationError) Reason() string
Reason function returns reason value.
type BatchGetUsersRequest ¶
type BatchGetUsersRequest struct { Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BatchGetUsersRequest) Descriptor ¶
func (*BatchGetUsersRequest) Descriptor() ([]byte, []int)
func (*BatchGetUsersRequest) GetIds ¶
func (m *BatchGetUsersRequest) GetIds() []int64
func (*BatchGetUsersRequest) Marshal ¶
func (m *BatchGetUsersRequest) Marshal() (dAtA []byte, err error)
func (*BatchGetUsersRequest) MarshalTo ¶
func (m *BatchGetUsersRequest) MarshalTo(dAtA []byte) (int, error)
func (*BatchGetUsersRequest) MarshalToSizedBuffer ¶
func (m *BatchGetUsersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BatchGetUsersRequest) ProtoMessage ¶
func (*BatchGetUsersRequest) ProtoMessage()
func (*BatchGetUsersRequest) Reset ¶
func (m *BatchGetUsersRequest) Reset()
func (*BatchGetUsersRequest) Size ¶
func (m *BatchGetUsersRequest) Size() (n int)
func (*BatchGetUsersRequest) String ¶
func (m *BatchGetUsersRequest) String() string
func (*BatchGetUsersRequest) Unmarshal ¶
func (m *BatchGetUsersRequest) Unmarshal(dAtA []byte) error
func (*BatchGetUsersRequest) Validate ¶
func (m *BatchGetUsersRequest) Validate() error
Validate checks the field values on BatchGetUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BatchGetUsersRequest) ValidateAll ¶
func (m *BatchGetUsersRequest) ValidateAll() error
ValidateAll checks the field values on BatchGetUsersRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BatchGetUsersRequestMultiError, or nil if none found.
func (*BatchGetUsersRequest) XXX_DiscardUnknown ¶
func (m *BatchGetUsersRequest) XXX_DiscardUnknown()
func (*BatchGetUsersRequest) XXX_Marshal ¶
func (m *BatchGetUsersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchGetUsersRequest) XXX_Merge ¶
func (m *BatchGetUsersRequest) XXX_Merge(src proto.Message)
func (*BatchGetUsersRequest) XXX_Size ¶
func (m *BatchGetUsersRequest) XXX_Size() int
func (*BatchGetUsersRequest) XXX_Unmarshal ¶
func (m *BatchGetUsersRequest) XXX_Unmarshal(b []byte) error
type BatchGetUsersRequestMultiError ¶
type BatchGetUsersRequestMultiError []error
BatchGetUsersRequestMultiError is an error wrapping multiple validation errors returned by BatchGetUsersRequest.ValidateAll() if the designated constraints aren't met.
func (BatchGetUsersRequestMultiError) AllErrors ¶
func (m BatchGetUsersRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchGetUsersRequestMultiError) Error ¶
func (m BatchGetUsersRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BatchGetUsersRequestValidationError ¶
type BatchGetUsersRequestValidationError struct {
// contains filtered or unexported fields
}
BatchGetUsersRequestValidationError is the validation error returned by BatchGetUsersRequest.Validate if the designated constraints aren't met.
func (BatchGetUsersRequestValidationError) Cause ¶
func (e BatchGetUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (BatchGetUsersRequestValidationError) Error ¶
func (e BatchGetUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BatchGetUsersRequestValidationError) ErrorName ¶
func (e BatchGetUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BatchGetUsersRequestValidationError) Field ¶
func (e BatchGetUsersRequestValidationError) Field() string
Field function returns field value.
func (BatchGetUsersRequestValidationError) Key ¶
func (e BatchGetUsersRequestValidationError) Key() bool
Key function returns key value.
func (BatchGetUsersRequestValidationError) Reason ¶
func (e BatchGetUsersRequestValidationError) Reason() string
Reason function returns reason value.
type CreateUserReply ¶
type CreateUserReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUserReply) Descriptor ¶
func (*CreateUserReply) Descriptor() ([]byte, []int)
func (*CreateUserReply) GetEmail ¶
func (m *CreateUserReply) GetEmail() string
func (*CreateUserReply) GetId ¶
func (m *CreateUserReply) GetId() int64
func (*CreateUserReply) GetUsername ¶
func (m *CreateUserReply) GetUsername() string
func (*CreateUserReply) Marshal ¶
func (m *CreateUserReply) Marshal() (dAtA []byte, err error)
func (*CreateUserReply) MarshalToSizedBuffer ¶
func (m *CreateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateUserReply) ProtoMessage ¶
func (*CreateUserReply) ProtoMessage()
func (*CreateUserReply) Reset ¶
func (m *CreateUserReply) Reset()
func (*CreateUserReply) Size ¶
func (m *CreateUserReply) Size() (n int)
func (*CreateUserReply) String ¶
func (m *CreateUserReply) String() string
func (*CreateUserReply) Unmarshal ¶
func (m *CreateUserReply) Unmarshal(dAtA []byte) error
func (*CreateUserReply) Validate ¶
func (m *CreateUserReply) Validate() error
Validate checks the field values on CreateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateUserReply) ValidateAll ¶
func (m *CreateUserReply) ValidateAll() error
ValidateAll checks the field values on CreateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserReplyMultiError, or nil if none found.
func (*CreateUserReply) XXX_DiscardUnknown ¶
func (m *CreateUserReply) XXX_DiscardUnknown()
func (*CreateUserReply) XXX_Marshal ¶
func (m *CreateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserReply) XXX_Merge ¶
func (m *CreateUserReply) XXX_Merge(src proto.Message)
func (*CreateUserReply) XXX_Size ¶
func (m *CreateUserReply) XXX_Size() int
func (*CreateUserReply) XXX_Unmarshal ¶
func (m *CreateUserReply) XXX_Unmarshal(b []byte) error
type CreateUserReplyMultiError ¶
type CreateUserReplyMultiError []error
CreateUserReplyMultiError is an error wrapping multiple validation errors returned by CreateUserReply.ValidateAll() if the designated constraints aren't met.
func (CreateUserReplyMultiError) AllErrors ¶
func (m CreateUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserReplyMultiError) Error ¶
func (m CreateUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserReplyValidationError ¶
type CreateUserReplyValidationError struct {
// contains filtered or unexported fields
}
CreateUserReplyValidationError is the validation error returned by CreateUserReply.Validate if the designated constraints aren't met.
func (CreateUserReplyValidationError) Cause ¶
func (e CreateUserReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateUserReplyValidationError) Error ¶
func (e CreateUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserReplyValidationError) ErrorName ¶
func (e CreateUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserReplyValidationError) Field ¶
func (e CreateUserReplyValidationError) Field() string
Field function returns field value.
func (CreateUserReplyValidationError) Key ¶
func (e CreateUserReplyValidationError) Key() bool
Key function returns key value.
func (CreateUserReplyValidationError) Reason ¶
func (e CreateUserReplyValidationError) Reason() string
Reason function returns reason value.
type CreateUserRequest ¶
type CreateUserRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateUserRequest) Descriptor ¶
func (*CreateUserRequest) Descriptor() ([]byte, []int)
func (*CreateUserRequest) GetEmail ¶
func (m *CreateUserRequest) GetEmail() string
func (*CreateUserRequest) GetPassword ¶
func (m *CreateUserRequest) GetPassword() string
func (*CreateUserRequest) GetUsername ¶
func (m *CreateUserRequest) GetUsername() string
func (*CreateUserRequest) Marshal ¶
func (m *CreateUserRequest) Marshal() (dAtA []byte, err error)
func (*CreateUserRequest) MarshalTo ¶
func (m *CreateUserRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateUserRequest) MarshalToSizedBuffer ¶
func (m *CreateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateUserRequest) ProtoMessage ¶
func (*CreateUserRequest) ProtoMessage()
func (*CreateUserRequest) Reset ¶
func (m *CreateUserRequest) Reset()
func (*CreateUserRequest) Size ¶
func (m *CreateUserRequest) Size() (n int)
func (*CreateUserRequest) String ¶
func (m *CreateUserRequest) String() string
func (*CreateUserRequest) Unmarshal ¶
func (m *CreateUserRequest) Unmarshal(dAtA []byte) error
func (*CreateUserRequest) Validate ¶
func (m *CreateUserRequest) Validate() error
Validate checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateUserRequest) ValidateAll ¶
func (m *CreateUserRequest) ValidateAll() error
ValidateAll checks the field values on CreateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateUserRequestMultiError, or nil if none found.
func (*CreateUserRequest) XXX_DiscardUnknown ¶
func (m *CreateUserRequest) XXX_DiscardUnknown()
func (*CreateUserRequest) XXX_Marshal ¶
func (m *CreateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateUserRequest) XXX_Merge ¶
func (m *CreateUserRequest) XXX_Merge(src proto.Message)
func (*CreateUserRequest) XXX_Size ¶
func (m *CreateUserRequest) XXX_Size() int
func (*CreateUserRequest) XXX_Unmarshal ¶
func (m *CreateUserRequest) XXX_Unmarshal(b []byte) error
type CreateUserRequestMultiError ¶
type CreateUserRequestMultiError []error
CreateUserRequestMultiError is an error wrapping multiple validation errors returned by CreateUserRequest.ValidateAll() if the designated constraints aren't met.
func (CreateUserRequestMultiError) AllErrors ¶
func (m CreateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateUserRequestMultiError) Error ¶
func (m CreateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateUserRequestValidationError ¶
type CreateUserRequestValidationError struct {
// contains filtered or unexported fields
}
CreateUserRequestValidationError is the validation error returned by CreateUserRequest.Validate if the designated constraints aren't met.
func (CreateUserRequestValidationError) Cause ¶
func (e CreateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateUserRequestValidationError) Error ¶
func (e CreateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateUserRequestValidationError) ErrorName ¶
func (e CreateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateUserRequestValidationError) Field ¶
func (e CreateUserRequestValidationError) Field() string
Field function returns field value.
func (CreateUserRequestValidationError) Key ¶
func (e CreateUserRequestValidationError) Key() bool
Key function returns key value.
func (CreateUserRequestValidationError) Reason ¶
func (e CreateUserRequestValidationError) Reason() string
Reason function returns reason value.
type GenderType ¶
type GenderType int32
性别
const ( GenderType_UNKNOWN GenderType = 0 GenderType_MALE GenderType = 1 GenderType_FEMALE GenderType = 2 )
func (GenderType) EnumDescriptor ¶
func (GenderType) EnumDescriptor() ([]byte, []int)
func (GenderType) String ¶
func (x GenderType) String() string
type GetUserReply ¶
type GetUserReply struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserReply) Descriptor ¶
func (*GetUserReply) Descriptor() ([]byte, []int)
func (*GetUserReply) GetUser ¶
func (m *GetUserReply) GetUser() *User
func (*GetUserReply) Marshal ¶
func (m *GetUserReply) Marshal() (dAtA []byte, err error)
func (*GetUserReply) MarshalToSizedBuffer ¶
func (m *GetUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) Reset ¶
func (m *GetUserReply) Reset()
func (*GetUserReply) Size ¶
func (m *GetUserReply) Size() (n int)
func (*GetUserReply) String ¶
func (m *GetUserReply) String() string
func (*GetUserReply) Unmarshal ¶
func (m *GetUserReply) Unmarshal(dAtA []byte) error
func (*GetUserReply) Validate ¶
func (m *GetUserReply) Validate() error
Validate checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserReply) ValidateAll ¶
func (m *GetUserReply) ValidateAll() error
ValidateAll checks the field values on GetUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserReplyMultiError, or nil if none found.
func (*GetUserReply) XXX_DiscardUnknown ¶
func (m *GetUserReply) XXX_DiscardUnknown()
func (*GetUserReply) XXX_Marshal ¶
func (m *GetUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserReply) XXX_Merge ¶
func (m *GetUserReply) XXX_Merge(src proto.Message)
func (*GetUserReply) XXX_Size ¶
func (m *GetUserReply) XXX_Size() int
func (*GetUserReply) XXX_Unmarshal ¶
func (m *GetUserReply) XXX_Unmarshal(b []byte) error
type GetUserReplyMultiError ¶
type GetUserReplyMultiError []error
GetUserReplyMultiError is an error wrapping multiple validation errors returned by GetUserReply.ValidateAll() if the designated constraints aren't met.
func (GetUserReplyMultiError) AllErrors ¶
func (m GetUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserReplyMultiError) Error ¶
func (m GetUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserReplyValidationError ¶
type GetUserReplyValidationError struct {
// contains filtered or unexported fields
}
GetUserReplyValidationError is the validation error returned by GetUserReply.Validate if the designated constraints aren't met.
func (GetUserReplyValidationError) Cause ¶
func (e GetUserReplyValidationError) Cause() error
Cause function returns cause value.
func (GetUserReplyValidationError) Error ¶
func (e GetUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserReplyValidationError) ErrorName ¶
func (e GetUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserReplyValidationError) Field ¶
func (e GetUserReplyValidationError) Field() string
Field function returns field value.
func (GetUserReplyValidationError) Key ¶
func (e GetUserReplyValidationError) Key() bool
Key function returns key value.
func (GetUserReplyValidationError) Reason ¶
func (e GetUserReplyValidationError) Reason() string
Reason function returns reason value.
type GetUserRequest ¶
type GetUserRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetUserRequest) Descriptor ¶
func (*GetUserRequest) Descriptor() ([]byte, []int)
func (*GetUserRequest) GetId ¶
func (m *GetUserRequest) GetId() int64
func (*GetUserRequest) Marshal ¶
func (m *GetUserRequest) Marshal() (dAtA []byte, err error)
func (*GetUserRequest) MarshalToSizedBuffer ¶
func (m *GetUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) Reset ¶
func (m *GetUserRequest) Reset()
func (*GetUserRequest) Size ¶
func (m *GetUserRequest) Size() (n int)
func (*GetUserRequest) String ¶
func (m *GetUserRequest) String() string
func (*GetUserRequest) Unmarshal ¶
func (m *GetUserRequest) Unmarshal(dAtA []byte) error
func (*GetUserRequest) Validate ¶
func (m *GetUserRequest) Validate() error
Validate checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetUserRequest) ValidateAll ¶
func (m *GetUserRequest) ValidateAll() error
ValidateAll checks the field values on GetUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetUserRequestMultiError, or nil if none found.
func (*GetUserRequest) XXX_DiscardUnknown ¶
func (m *GetUserRequest) XXX_DiscardUnknown()
func (*GetUserRequest) XXX_Marshal ¶
func (m *GetUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetUserRequest) XXX_Merge ¶
func (m *GetUserRequest) XXX_Merge(src proto.Message)
func (*GetUserRequest) XXX_Size ¶
func (m *GetUserRequest) XXX_Size() int
func (*GetUserRequest) XXX_Unmarshal ¶
func (m *GetUserRequest) XXX_Unmarshal(b []byte) error
type GetUserRequestMultiError ¶
type GetUserRequestMultiError []error
GetUserRequestMultiError is an error wrapping multiple validation errors returned by GetUserRequest.ValidateAll() if the designated constraints aren't met.
func (GetUserRequestMultiError) AllErrors ¶
func (m GetUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetUserRequestMultiError) Error ¶
func (m GetUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetUserRequestValidationError ¶
type GetUserRequestValidationError struct {
// contains filtered or unexported fields
}
GetUserRequestValidationError is the validation error returned by GetUserRequest.Validate if the designated constraints aren't met.
func (GetUserRequestValidationError) Cause ¶
func (e GetUserRequestValidationError) Cause() error
Cause function returns cause value.
func (GetUserRequestValidationError) Error ¶
func (e GetUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetUserRequestValidationError) ErrorName ¶
func (e GetUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetUserRequestValidationError) Field ¶
func (e GetUserRequestValidationError) Field() string
Field function returns field value.
func (GetUserRequestValidationError) Key ¶
func (e GetUserRequestValidationError) Key() bool
Key function returns key value.
func (GetUserRequestValidationError) Reason ¶
func (e GetUserRequestValidationError) Reason() string
Reason function returns reason value.
type LoginReply ¶
type LoginReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` RefreshToken string `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginReply) Descriptor ¶
func (*LoginReply) Descriptor() ([]byte, []int)
func (*LoginReply) GetAccessToken ¶
func (m *LoginReply) GetAccessToken() string
func (*LoginReply) GetId ¶
func (m *LoginReply) GetId() int64
func (*LoginReply) GetRefreshToken ¶
func (m *LoginReply) GetRefreshToken() string
func (*LoginReply) Marshal ¶
func (m *LoginReply) Marshal() (dAtA []byte, err error)
func (*LoginReply) MarshalToSizedBuffer ¶
func (m *LoginReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) Reset ¶
func (m *LoginReply) Reset()
func (*LoginReply) Size ¶
func (m *LoginReply) Size() (n int)
func (*LoginReply) String ¶
func (m *LoginReply) String() string
func (*LoginReply) Unmarshal ¶
func (m *LoginReply) Unmarshal(dAtA []byte) error
func (*LoginReply) Validate ¶
func (m *LoginReply) Validate() error
Validate checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginReply) ValidateAll ¶
func (m *LoginReply) ValidateAll() error
ValidateAll checks the field values on LoginReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginReplyMultiError, or nil if none found.
func (*LoginReply) XXX_DiscardUnknown ¶
func (m *LoginReply) XXX_DiscardUnknown()
func (*LoginReply) XXX_Marshal ¶
func (m *LoginReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginReply) XXX_Merge ¶
func (m *LoginReply) XXX_Merge(src proto.Message)
func (*LoginReply) XXX_Size ¶
func (m *LoginReply) XXX_Size() int
func (*LoginReply) XXX_Unmarshal ¶
func (m *LoginReply) XXX_Unmarshal(b []byte) error
type LoginReplyMultiError ¶
type LoginReplyMultiError []error
LoginReplyMultiError is an error wrapping multiple validation errors returned by LoginReply.ValidateAll() if the designated constraints aren't met.
func (LoginReplyMultiError) AllErrors ¶
func (m LoginReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginReplyMultiError) Error ¶
func (m LoginReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginReplyValidationError ¶
type LoginReplyValidationError struct {
// contains filtered or unexported fields
}
LoginReplyValidationError is the validation error returned by LoginReply.Validate if the designated constraints aren't met.
func (LoginReplyValidationError) Cause ¶
func (e LoginReplyValidationError) Cause() error
Cause function returns cause value.
func (LoginReplyValidationError) Error ¶
func (e LoginReplyValidationError) Error() string
Error satisfies the builtin error interface
func (LoginReplyValidationError) ErrorName ¶
func (e LoginReplyValidationError) ErrorName() string
ErrorName returns error name.
func (LoginReplyValidationError) Field ¶
func (e LoginReplyValidationError) Field() string
Field function returns field value.
func (LoginReplyValidationError) Key ¶
func (e LoginReplyValidationError) Key() bool
Key function returns key value.
func (LoginReplyValidationError) Reason ¶
func (e LoginReplyValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LoginRequest) Descriptor ¶
func (*LoginRequest) Descriptor() ([]byte, []int)
func (*LoginRequest) GetEmail ¶
func (m *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (m *LoginRequest) GetPassword() string
func (*LoginRequest) GetUsername ¶
func (m *LoginRequest) GetUsername() string
func (*LoginRequest) Marshal ¶
func (m *LoginRequest) Marshal() (dAtA []byte, err error)
func (*LoginRequest) MarshalToSizedBuffer ¶
func (m *LoginRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) Reset ¶
func (m *LoginRequest) Reset()
func (*LoginRequest) Size ¶
func (m *LoginRequest) Size() (n int)
func (*LoginRequest) String ¶
func (m *LoginRequest) String() string
func (*LoginRequest) Unmarshal ¶
func (m *LoginRequest) Unmarshal(dAtA []byte) error
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LoginRequestMultiError, or nil if none found.
func (*LoginRequest) XXX_DiscardUnknown ¶
func (m *LoginRequest) XXX_DiscardUnknown()
func (*LoginRequest) XXX_Marshal ¶
func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LoginRequest) XXX_Merge ¶
func (m *LoginRequest) XXX_Merge(src proto.Message)
func (*LoginRequest) XXX_Size ¶
func (m *LoginRequest) XXX_Size() int
func (*LoginRequest) XXX_Unmarshal ¶
func (m *LoginRequest) XXX_Unmarshal(b []byte) error
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LogoutReply ¶
type LogoutReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogoutReply) Descriptor ¶
func (*LogoutReply) Descriptor() ([]byte, []int)
func (*LogoutReply) Marshal ¶
func (m *LogoutReply) Marshal() (dAtA []byte, err error)
func (*LogoutReply) MarshalToSizedBuffer ¶
func (m *LogoutReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) Reset ¶
func (m *LogoutReply) Reset()
func (*LogoutReply) Size ¶
func (m *LogoutReply) Size() (n int)
func (*LogoutReply) String ¶
func (m *LogoutReply) String() string
func (*LogoutReply) Unmarshal ¶
func (m *LogoutReply) Unmarshal(dAtA []byte) error
func (*LogoutReply) XXX_DiscardUnknown ¶
func (m *LogoutReply) XXX_DiscardUnknown()
func (*LogoutReply) XXX_Marshal ¶
func (m *LogoutReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogoutReply) XXX_Merge ¶
func (m *LogoutReply) XXX_Merge(src proto.Message)
func (*LogoutReply) XXX_Size ¶
func (m *LogoutReply) XXX_Size() int
func (*LogoutReply) XXX_Unmarshal ¶
func (m *LogoutReply) XXX_Unmarshal(b []byte) error
type LogoutRequest ¶
type LogoutRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LogoutRequest) Descriptor ¶
func (*LogoutRequest) Descriptor() ([]byte, []int)
func (*LogoutRequest) GetAccessToken ¶
func (m *LogoutRequest) GetAccessToken() string
func (*LogoutRequest) GetId ¶
func (m *LogoutRequest) GetId() int64
func (*LogoutRequest) Marshal ¶
func (m *LogoutRequest) Marshal() (dAtA []byte, err error)
func (*LogoutRequest) MarshalToSizedBuffer ¶
func (m *LogoutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LogoutRequest) ProtoMessage ¶
func (*LogoutRequest) ProtoMessage()
func (*LogoutRequest) Reset ¶
func (m *LogoutRequest) Reset()
func (*LogoutRequest) Size ¶
func (m *LogoutRequest) Size() (n int)
func (*LogoutRequest) String ¶
func (m *LogoutRequest) String() string
func (*LogoutRequest) Unmarshal ¶
func (m *LogoutRequest) Unmarshal(dAtA []byte) error
func (*LogoutRequest) Validate ¶
func (m *LogoutRequest) Validate() error
Validate checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*LogoutRequest) ValidateAll ¶
func (m *LogoutRequest) ValidateAll() error
ValidateAll checks the field values on LogoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in LogoutRequestMultiError, or nil if none found.
func (*LogoutRequest) XXX_DiscardUnknown ¶
func (m *LogoutRequest) XXX_DiscardUnknown()
func (*LogoutRequest) XXX_Marshal ¶
func (m *LogoutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LogoutRequest) XXX_Merge ¶
func (m *LogoutRequest) XXX_Merge(src proto.Message)
func (*LogoutRequest) XXX_Size ¶
func (m *LogoutRequest) XXX_Size() int
func (*LogoutRequest) XXX_Unmarshal ¶
func (m *LogoutRequest) XXX_Unmarshal(b []byte) error
type LogoutRequestMultiError ¶
type LogoutRequestMultiError []error
LogoutRequestMultiError is an error wrapping multiple validation errors returned by LogoutRequest.ValidateAll() if the designated constraints aren't met.
func (LogoutRequestMultiError) AllErrors ¶
func (m LogoutRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LogoutRequestMultiError) Error ¶
func (m LogoutRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LogoutRequestValidationError ¶
type LogoutRequestValidationError struct {
// contains filtered or unexported fields
}
LogoutRequestValidationError is the validation error returned by LogoutRequest.Validate if the designated constraints aren't met.
func (LogoutRequestValidationError) Cause ¶
func (e LogoutRequestValidationError) Cause() error
Cause function returns cause value.
func (LogoutRequestValidationError) Error ¶
func (e LogoutRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LogoutRequestValidationError) ErrorName ¶
func (e LogoutRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LogoutRequestValidationError) Field ¶
func (e LogoutRequestValidationError) Field() string
Field function returns field value.
func (LogoutRequestValidationError) Key ¶
func (e LogoutRequestValidationError) Key() bool
Key function returns key value.
func (LogoutRequestValidationError) Reason ¶
func (e LogoutRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterReply ¶
type RegisterReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterReply) Descriptor ¶
func (*RegisterReply) Descriptor() ([]byte, []int)
func (*RegisterReply) GetId ¶
func (m *RegisterReply) GetId() int64
func (*RegisterReply) GetUsername ¶
func (m *RegisterReply) GetUsername() string
func (*RegisterReply) Marshal ¶
func (m *RegisterReply) Marshal() (dAtA []byte, err error)
func (*RegisterReply) MarshalToSizedBuffer ¶
func (m *RegisterReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterReply) ProtoMessage ¶
func (*RegisterReply) ProtoMessage()
func (*RegisterReply) Reset ¶
func (m *RegisterReply) Reset()
func (*RegisterReply) Size ¶
func (m *RegisterReply) Size() (n int)
func (*RegisterReply) String ¶
func (m *RegisterReply) String() string
func (*RegisterReply) Unmarshal ¶
func (m *RegisterReply) Unmarshal(dAtA []byte) error
func (*RegisterReply) Validate ¶
func (m *RegisterReply) Validate() error
Validate checks the field values on RegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterReply) ValidateAll ¶
func (m *RegisterReply) ValidateAll() error
ValidateAll checks the field values on RegisterReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterReplyMultiError, or nil if none found.
func (*RegisterReply) XXX_DiscardUnknown ¶
func (m *RegisterReply) XXX_DiscardUnknown()
func (*RegisterReply) XXX_Marshal ¶
func (m *RegisterReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterReply) XXX_Merge ¶
func (m *RegisterReply) XXX_Merge(src proto.Message)
func (*RegisterReply) XXX_Size ¶
func (m *RegisterReply) XXX_Size() int
func (*RegisterReply) XXX_Unmarshal ¶
func (m *RegisterReply) XXX_Unmarshal(b []byte) error
type RegisterReplyMultiError ¶
type RegisterReplyMultiError []error
RegisterReplyMultiError is an error wrapping multiple validation errors returned by RegisterReply.ValidateAll() if the designated constraints aren't met.
func (RegisterReplyMultiError) AllErrors ¶
func (m RegisterReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterReplyMultiError) Error ¶
func (m RegisterReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterReplyValidationError ¶
type RegisterReplyValidationError struct {
// contains filtered or unexported fields
}
RegisterReplyValidationError is the validation error returned by RegisterReply.Validate if the designated constraints aren't met.
func (RegisterReplyValidationError) Cause ¶
func (e RegisterReplyValidationError) Cause() error
Cause function returns cause value.
func (RegisterReplyValidationError) Error ¶
func (e RegisterReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterReplyValidationError) ErrorName ¶
func (e RegisterReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterReplyValidationError) Field ¶
func (e RegisterReplyValidationError) Field() string
Field function returns field value.
func (RegisterReplyValidationError) Key ¶
func (e RegisterReplyValidationError) Key() bool
Key function returns key value.
func (RegisterReplyValidationError) Reason ¶
func (e RegisterReplyValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RegisterRequest) Descriptor ¶
func (*RegisterRequest) Descriptor() ([]byte, []int)
func (*RegisterRequest) GetEmail ¶
func (m *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetPassword ¶
func (m *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (m *RegisterRequest) GetUsername() string
func (*RegisterRequest) Marshal ¶
func (m *RegisterRequest) Marshal() (dAtA []byte, err error)
func (*RegisterRequest) MarshalToSizedBuffer ¶
func (m *RegisterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) Reset ¶
func (m *RegisterRequest) Reset()
func (*RegisterRequest) Size ¶
func (m *RegisterRequest) Size() (n int)
func (*RegisterRequest) String ¶
func (m *RegisterRequest) String() string
func (*RegisterRequest) Unmarshal ¶
func (m *RegisterRequest) Unmarshal(dAtA []byte) error
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RegisterRequestMultiError, or nil if none found.
func (*RegisterRequest) XXX_DiscardUnknown ¶
func (m *RegisterRequest) XXX_DiscardUnknown()
func (*RegisterRequest) XXX_Marshal ¶
func (m *RegisterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RegisterRequest) XXX_Merge ¶
func (m *RegisterRequest) XXX_Merge(src proto.Message)
func (*RegisterRequest) XXX_Size ¶
func (m *RegisterRequest) XXX_Size() int
func (*RegisterRequest) XXX_Unmarshal ¶
func (m *RegisterRequest) XXX_Unmarshal(b []byte) error
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type StatusType ¶
type StatusType int32
用户状态
const ( StatusType_NORMAL StatusType = 0 StatusType_DELETE StatusType = 1 StatusType_Ban StatusType = 2 )
func (StatusType) EnumDescriptor ¶
func (StatusType) EnumDescriptor() ([]byte, []int)
func (StatusType) String ¶
func (x StatusType) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) BatchGetUsers ¶
func (UnimplementedUserServiceServer) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersReply, error)
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserServiceServer) Login ¶
func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedUserServiceServer) Logout ¶
func (UnimplementedUserServiceServer) Logout(context.Context, *LogoutRequest) (*LogoutReply, error)
func (UnimplementedUserServiceServer) Register ¶
func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error)
func (UnimplementedUserServiceServer) UpdatePassword ¶
func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdatePasswordReply ¶
type UpdatePasswordReply struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdatePasswordReply) Descriptor ¶
func (*UpdatePasswordReply) Descriptor() ([]byte, []int)
func (*UpdatePasswordReply) Marshal ¶
func (m *UpdatePasswordReply) Marshal() (dAtA []byte, err error)
func (*UpdatePasswordReply) MarshalTo ¶
func (m *UpdatePasswordReply) MarshalTo(dAtA []byte) (int, error)
func (*UpdatePasswordReply) MarshalToSizedBuffer ¶
func (m *UpdatePasswordReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdatePasswordReply) ProtoMessage ¶
func (*UpdatePasswordReply) ProtoMessage()
func (*UpdatePasswordReply) Reset ¶
func (m *UpdatePasswordReply) Reset()
func (*UpdatePasswordReply) Size ¶
func (m *UpdatePasswordReply) Size() (n int)
func (*UpdatePasswordReply) String ¶
func (m *UpdatePasswordReply) String() string
func (*UpdatePasswordReply) Unmarshal ¶
func (m *UpdatePasswordReply) Unmarshal(dAtA []byte) error
func (*UpdatePasswordReply) Validate ¶
func (m *UpdatePasswordReply) Validate() error
Validate checks the field values on UpdatePasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePasswordReply) ValidateAll ¶
func (m *UpdatePasswordReply) ValidateAll() error
ValidateAll checks the field values on UpdatePasswordReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordReplyMultiError, or nil if none found.
func (*UpdatePasswordReply) XXX_DiscardUnknown ¶
func (m *UpdatePasswordReply) XXX_DiscardUnknown()
func (*UpdatePasswordReply) XXX_Marshal ¶
func (m *UpdatePasswordReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdatePasswordReply) XXX_Merge ¶
func (m *UpdatePasswordReply) XXX_Merge(src proto.Message)
func (*UpdatePasswordReply) XXX_Size ¶
func (m *UpdatePasswordReply) XXX_Size() int
func (*UpdatePasswordReply) XXX_Unmarshal ¶
func (m *UpdatePasswordReply) XXX_Unmarshal(b []byte) error
type UpdatePasswordReplyMultiError ¶
type UpdatePasswordReplyMultiError []error
UpdatePasswordReplyMultiError is an error wrapping multiple validation errors returned by UpdatePasswordReply.ValidateAll() if the designated constraints aren't met.
func (UpdatePasswordReplyMultiError) AllErrors ¶
func (m UpdatePasswordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePasswordReplyMultiError) Error ¶
func (m UpdatePasswordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePasswordReplyValidationError ¶
type UpdatePasswordReplyValidationError struct {
// contains filtered or unexported fields
}
UpdatePasswordReplyValidationError is the validation error returned by UpdatePasswordReply.Validate if the designated constraints aren't met.
func (UpdatePasswordReplyValidationError) Cause ¶
func (e UpdatePasswordReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdatePasswordReplyValidationError) Error ¶
func (e UpdatePasswordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePasswordReplyValidationError) ErrorName ¶
func (e UpdatePasswordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePasswordReplyValidationError) Field ¶
func (e UpdatePasswordReplyValidationError) Field() string
Field function returns field value.
func (UpdatePasswordReplyValidationError) Key ¶
func (e UpdatePasswordReplyValidationError) Key() bool
Key function returns key value.
func (UpdatePasswordReplyValidationError) Reason ¶
func (e UpdatePasswordReplyValidationError) Reason() string
Reason function returns reason value.
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` NewPassword string `protobuf:"bytes,3,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"` ConfirmPassword string `protobuf:"bytes,4,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdatePasswordRequest) Descriptor ¶
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
func (*UpdatePasswordRequest) GetConfirmPassword ¶
func (m *UpdatePasswordRequest) GetConfirmPassword() string
func (*UpdatePasswordRequest) GetId ¶
func (m *UpdatePasswordRequest) GetId() string
func (*UpdatePasswordRequest) GetNewPassword ¶
func (m *UpdatePasswordRequest) GetNewPassword() string
func (*UpdatePasswordRequest) GetPassword ¶
func (m *UpdatePasswordRequest) GetPassword() string
func (*UpdatePasswordRequest) Marshal ¶
func (m *UpdatePasswordRequest) Marshal() (dAtA []byte, err error)
func (*UpdatePasswordRequest) MarshalTo ¶
func (m *UpdatePasswordRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpdatePasswordRequest) MarshalToSizedBuffer ¶
func (m *UpdatePasswordRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) Reset ¶
func (m *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) Size ¶
func (m *UpdatePasswordRequest) Size() (n int)
func (*UpdatePasswordRequest) String ¶
func (m *UpdatePasswordRequest) String() string
func (*UpdatePasswordRequest) Unmarshal ¶
func (m *UpdatePasswordRequest) Unmarshal(dAtA []byte) error
func (*UpdatePasswordRequest) Validate ¶
func (m *UpdatePasswordRequest) Validate() error
Validate checks the field values on UpdatePasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdatePasswordRequest) ValidateAll ¶
func (m *UpdatePasswordRequest) ValidateAll() error
ValidateAll checks the field values on UpdatePasswordRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdatePasswordRequestMultiError, or nil if none found.
func (*UpdatePasswordRequest) XXX_DiscardUnknown ¶
func (m *UpdatePasswordRequest) XXX_DiscardUnknown()
func (*UpdatePasswordRequest) XXX_Marshal ¶
func (m *UpdatePasswordRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdatePasswordRequest) XXX_Merge ¶
func (m *UpdatePasswordRequest) XXX_Merge(src proto.Message)
func (*UpdatePasswordRequest) XXX_Size ¶
func (m *UpdatePasswordRequest) XXX_Size() int
func (*UpdatePasswordRequest) XXX_Unmarshal ¶
func (m *UpdatePasswordRequest) XXX_Unmarshal(b []byte) error
type UpdatePasswordRequestMultiError ¶
type UpdatePasswordRequestMultiError []error
UpdatePasswordRequestMultiError is an error wrapping multiple validation errors returned by UpdatePasswordRequest.ValidateAll() if the designated constraints aren't met.
func (UpdatePasswordRequestMultiError) AllErrors ¶
func (m UpdatePasswordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdatePasswordRequestMultiError) Error ¶
func (m UpdatePasswordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdatePasswordRequestValidationError ¶
type UpdatePasswordRequestValidationError struct {
// contains filtered or unexported fields
}
UpdatePasswordRequestValidationError is the validation error returned by UpdatePasswordRequest.Validate if the designated constraints aren't met.
func (UpdatePasswordRequestValidationError) Cause ¶
func (e UpdatePasswordRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdatePasswordRequestValidationError) Error ¶
func (e UpdatePasswordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdatePasswordRequestValidationError) ErrorName ¶
func (e UpdatePasswordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdatePasswordRequestValidationError) Field ¶
func (e UpdatePasswordRequestValidationError) Field() string
Field function returns field value.
func (UpdatePasswordRequestValidationError) Key ¶
func (e UpdatePasswordRequestValidationError) Key() bool
Key function returns key value.
func (UpdatePasswordRequestValidationError) Reason ¶
func (e UpdatePasswordRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateUserReply ¶
type UpdateUserReply struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` LoginAt int64 `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"` Status StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"` Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Gender GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"` Birthday string `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"` Bio string `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"` UpdatedAt int64 `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserReply) Descriptor ¶
func (*UpdateUserReply) Descriptor() ([]byte, []int)
func (*UpdateUserReply) GetAvatar ¶
func (m *UpdateUserReply) GetAvatar() string
func (*UpdateUserReply) GetBio ¶
func (m *UpdateUserReply) GetBio() string
func (*UpdateUserReply) GetBirthday ¶
func (m *UpdateUserReply) GetBirthday() string
func (*UpdateUserReply) GetEmail ¶
func (m *UpdateUserReply) GetEmail() string
func (*UpdateUserReply) GetGender ¶
func (m *UpdateUserReply) GetGender() GenderType
func (*UpdateUserReply) GetLoginAt ¶
func (m *UpdateUserReply) GetLoginAt() int64
func (*UpdateUserReply) GetNickname ¶
func (m *UpdateUserReply) GetNickname() string
func (*UpdateUserReply) GetPhone ¶
func (m *UpdateUserReply) GetPhone() string
func (*UpdateUserReply) GetStatus ¶
func (m *UpdateUserReply) GetStatus() StatusType
func (*UpdateUserReply) GetUpdatedAt ¶
func (m *UpdateUserReply) GetUpdatedAt() int64
func (*UpdateUserReply) GetUserId ¶
func (m *UpdateUserReply) GetUserId() int64
func (*UpdateUserReply) GetUsername ¶
func (m *UpdateUserReply) GetUsername() string
func (*UpdateUserReply) Marshal ¶
func (m *UpdateUserReply) Marshal() (dAtA []byte, err error)
func (*UpdateUserReply) MarshalToSizedBuffer ¶
func (m *UpdateUserReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) Reset ¶
func (m *UpdateUserReply) Reset()
func (*UpdateUserReply) Size ¶
func (m *UpdateUserReply) Size() (n int)
func (*UpdateUserReply) String ¶
func (m *UpdateUserReply) String() string
func (*UpdateUserReply) Unmarshal ¶
func (m *UpdateUserReply) Unmarshal(dAtA []byte) error
func (*UpdateUserReply) Validate ¶
func (m *UpdateUserReply) Validate() error
Validate checks the field values on UpdateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserReply) ValidateAll ¶
func (m *UpdateUserReply) ValidateAll() error
ValidateAll checks the field values on UpdateUserReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserReplyMultiError, or nil if none found.
func (*UpdateUserReply) XXX_DiscardUnknown ¶
func (m *UpdateUserReply) XXX_DiscardUnknown()
func (*UpdateUserReply) XXX_Marshal ¶
func (m *UpdateUserReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserReply) XXX_Merge ¶
func (m *UpdateUserReply) XXX_Merge(src proto.Message)
func (*UpdateUserReply) XXX_Size ¶
func (m *UpdateUserReply) XXX_Size() int
func (*UpdateUserReply) XXX_Unmarshal ¶
func (m *UpdateUserReply) XXX_Unmarshal(b []byte) error
type UpdateUserReplyMultiError ¶
type UpdateUserReplyMultiError []error
UpdateUserReplyMultiError is an error wrapping multiple validation errors returned by UpdateUserReply.ValidateAll() if the designated constraints aren't met.
func (UpdateUserReplyMultiError) AllErrors ¶
func (m UpdateUserReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserReplyMultiError) Error ¶
func (m UpdateUserReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserReplyValidationError ¶
type UpdateUserReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateUserReplyValidationError is the validation error returned by UpdateUserReply.Validate if the designated constraints aren't met.
func (UpdateUserReplyValidationError) Cause ¶
func (e UpdateUserReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserReplyValidationError) Error ¶
func (e UpdateUserReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserReplyValidationError) ErrorName ¶
func (e UpdateUserReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserReplyValidationError) Field ¶
func (e UpdateUserReplyValidationError) Field() string
Field function returns field value.
func (UpdateUserReplyValidationError) Key ¶
func (e UpdateUserReplyValidationError) Key() bool
Key function returns key value.
func (UpdateUserReplyValidationError) Reason ¶
func (e UpdateUserReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateUserRequest ¶
type UpdateUserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` LoginAt int64 `protobuf:"varint,5,opt,name=login_at,json=loginAt,proto3" json:"login_at,omitempty"` Status StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"` Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Gender GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"` Birthday string `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"` Bio string `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"` UpdatedAt int64 `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateUserRequest) Descriptor ¶
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
func (*UpdateUserRequest) GetAvatar ¶
func (m *UpdateUserRequest) GetAvatar() string
func (*UpdateUserRequest) GetBio ¶
func (m *UpdateUserRequest) GetBio() string
func (*UpdateUserRequest) GetBirthday ¶
func (m *UpdateUserRequest) GetBirthday() string
func (*UpdateUserRequest) GetEmail ¶
func (m *UpdateUserRequest) GetEmail() string
func (*UpdateUserRequest) GetGender ¶
func (m *UpdateUserRequest) GetGender() GenderType
func (*UpdateUserRequest) GetLoginAt ¶
func (m *UpdateUserRequest) GetLoginAt() int64
func (*UpdateUserRequest) GetNickname ¶
func (m *UpdateUserRequest) GetNickname() string
func (*UpdateUserRequest) GetPhone ¶
func (m *UpdateUserRequest) GetPhone() string
func (*UpdateUserRequest) GetStatus ¶
func (m *UpdateUserRequest) GetStatus() StatusType
func (*UpdateUserRequest) GetUpdatedAt ¶
func (m *UpdateUserRequest) GetUpdatedAt() int64
func (*UpdateUserRequest) GetUserId ¶
func (m *UpdateUserRequest) GetUserId() int64
func (*UpdateUserRequest) GetUsername ¶
func (m *UpdateUserRequest) GetUsername() string
func (*UpdateUserRequest) Marshal ¶
func (m *UpdateUserRequest) Marshal() (dAtA []byte, err error)
func (*UpdateUserRequest) MarshalTo ¶
func (m *UpdateUserRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpdateUserRequest) MarshalToSizedBuffer ¶
func (m *UpdateUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) Reset ¶
func (m *UpdateUserRequest) Reset()
func (*UpdateUserRequest) Size ¶
func (m *UpdateUserRequest) Size() (n int)
func (*UpdateUserRequest) String ¶
func (m *UpdateUserRequest) String() string
func (*UpdateUserRequest) Unmarshal ¶
func (m *UpdateUserRequest) Unmarshal(dAtA []byte) error
func (*UpdateUserRequest) Validate ¶
func (m *UpdateUserRequest) Validate() error
Validate checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateUserRequest) ValidateAll ¶
func (m *UpdateUserRequest) ValidateAll() error
ValidateAll checks the field values on UpdateUserRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateUserRequestMultiError, or nil if none found.
func (*UpdateUserRequest) XXX_DiscardUnknown ¶
func (m *UpdateUserRequest) XXX_DiscardUnknown()
func (*UpdateUserRequest) XXX_Marshal ¶
func (m *UpdateUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateUserRequest) XXX_Merge ¶
func (m *UpdateUserRequest) XXX_Merge(src proto.Message)
func (*UpdateUserRequest) XXX_Size ¶
func (m *UpdateUserRequest) XXX_Size() int
func (*UpdateUserRequest) XXX_Unmarshal ¶
func (m *UpdateUserRequest) XXX_Unmarshal(b []byte) error
type UpdateUserRequestMultiError ¶
type UpdateUserRequestMultiError []error
UpdateUserRequestMultiError is an error wrapping multiple validation errors returned by UpdateUserRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateUserRequestMultiError) AllErrors ¶
func (m UpdateUserRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateUserRequestMultiError) Error ¶
func (m UpdateUserRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateUserRequestValidationError ¶
type UpdateUserRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateUserRequestValidationError is the validation error returned by UpdateUserRequest.Validate if the designated constraints aren't met.
func (UpdateUserRequestValidationError) Cause ¶
func (e UpdateUserRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateUserRequestValidationError) Error ¶
func (e UpdateUserRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateUserRequestValidationError) ErrorName ¶
func (e UpdateUserRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateUserRequestValidationError) Field ¶
func (e UpdateUserRequestValidationError) Field() string
Field function returns field value.
func (UpdateUserRequestValidationError) Key ¶
func (e UpdateUserRequestValidationError) Key() bool
Key function returns key value.
func (UpdateUserRequestValidationError) Reason ¶
func (e UpdateUserRequestValidationError) Reason() string
Reason function returns reason value.
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` LastLoginAt int64 `protobuf:"varint,5,opt,name=last_login_at,json=lastLoginAt,proto3" json:"last_login_at,omitempty"` Status StatusType `protobuf:"varint,6,opt,name=status,proto3,enum=user.v1.StatusType" json:"status,omitempty"` Nickname string `protobuf:"bytes,7,opt,name=nickname,proto3" json:"nickname,omitempty"` Avatar string `protobuf:"bytes,8,opt,name=avatar,proto3" json:"avatar,omitempty"` Gender GenderType `protobuf:"varint,9,opt,name=gender,proto3,enum=user.v1.GenderType" json:"gender,omitempty"` Birthday string `protobuf:"bytes,10,opt,name=birthday,proto3" json:"birthday,omitempty"` Bio string `protobuf:"bytes,11,opt,name=bio,proto3" json:"bio,omitempty"` CreatedAt int64 `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
user info
func (*User) Descriptor ¶
func (*User) GetBirthday ¶
func (*User) GetCreatedAt ¶
func (*User) GetGender ¶
func (m *User) GetGender() GenderType
func (*User) GetLastLoginAt ¶
func (*User) GetNickname ¶
func (*User) GetStatus ¶
func (m *User) GetStatus() StatusType
func (*User) GetUpdatedAt ¶
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) Validate ¶
Validate checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*User) ValidateAll ¶
ValidateAll checks the field values on User with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UserMultiError, or nil if none found.
func (*User) XXX_DiscardUnknown ¶
func (m *User) XXX_DiscardUnknown()
func (*User) XXX_Unmarshal ¶
type UserMultiError ¶
type UserMultiError []error
UserMultiError is an error wrapping multiple validation errors returned by User.ValidateAll() if the designated constraints aren't met.
func (UserMultiError) AllErrors ¶
func (m UserMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserMultiError) Error ¶
func (m UserMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func (*UserService) BatchGetUsers_0 ¶
func (s *UserService) BatchGetUsers_0(ctx *gin.Context)
func (*UserService) CreateUser_0 ¶
func (s *UserService) CreateUser_0(ctx *gin.Context)
func (*UserService) GetUser_0 ¶
func (s *UserService) GetUser_0(ctx *gin.Context)
func (*UserService) Login_0 ¶
func (s *UserService) Login_0(ctx *gin.Context)
func (*UserService) Logout_0 ¶
func (s *UserService) Logout_0(ctx *gin.Context)
func (*UserService) RegisterService ¶
func (s *UserService) RegisterService()
func (*UserService) Register_0 ¶
func (s *UserService) Register_0(ctx *gin.Context)
func (*UserService) UpdatePassword_0 ¶
func (s *UserService) UpdatePassword_0(ctx *gin.Context)
func (*UserService) UpdateUser_0 ¶
func (s *UserService) UpdateUser_0(ctx *gin.Context)
type UserServiceClient ¶
type UserServiceClient interface { // auth // sign up Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error) // sign in Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) // logout Logout(ctx context.Context, in *LogoutRequest, opts ...grpc.CallOption) (*LogoutReply, error) // user CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserReply, error) GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) BatchGetUsers(ctx context.Context, in *BatchGetUsersRequest, opts ...grpc.CallOption) (*BatchGetUsersReply, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordReply, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceHTTPServer ¶
type UserServiceHTTPServer interface { BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersReply, error) CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Logout(context.Context, *LogoutRequest) (*LogoutReply, error) Register(context.Context, *RegisterRequest) (*RegisterReply, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) }
type UserServiceServer ¶
type UserServiceServer interface { // auth // sign up Register(context.Context, *RegisterRequest) (*RegisterReply, error) // sign in Login(context.Context, *LoginRequest) (*LoginReply, error) // logout Logout(context.Context, *LogoutRequest) (*LogoutReply, error) // user CreateUser(context.Context, *CreateUserRequest) (*CreateUserReply, error) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) BatchGetUsers(context.Context, *BatchGetUsersRequest) (*BatchGetUsersReply, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordReply, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserValidationError ¶
type UserValidationError struct {
// contains filtered or unexported fields
}
UserValidationError is the validation error returned by User.Validate if the designated constraints aren't met.
func (UserValidationError) Cause ¶
func (e UserValidationError) Cause() error
Cause function returns cause value.
func (UserValidationError) Error ¶
func (e UserValidationError) Error() string
Error satisfies the builtin error interface
func (UserValidationError) ErrorName ¶
func (e UserValidationError) ErrorName() string
ErrorName returns error name.
func (UserValidationError) Field ¶
func (e UserValidationError) Field() string
Field function returns field value.
func (UserValidationError) Key ¶
func (e UserValidationError) Key() bool
Key function returns key value.
func (UserValidationError) Reason ¶
func (e UserValidationError) Reason() string
Reason function returns reason value.