Documentation
¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type UnimplementedUserServiceServer
- type UnsafeUserServiceServer
- type UserServiceClient
- type UserServiceServer
- type UserSignInRequest
- func (*UserSignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserSignInRequest) GetPassword() string
- func (x *UserSignInRequest) GetUsername() string
- func (*UserSignInRequest) ProtoMessage()
- func (x *UserSignInRequest) ProtoReflect() protoreflect.Message
- func (x *UserSignInRequest) Reset()
- func (x *UserSignInRequest) String() string
- type UserSignInResponse
- func (*UserSignInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserSignInResponse) GetCode() int32
- func (x *UserSignInResponse) GetCreateTime() string
- func (x *UserSignInResponse) GetId() int64
- func (x *UserSignInResponse) GetToken() string
- func (x *UserSignInResponse) GetUpdateTime() string
- func (x *UserSignInResponse) GetUsername() string
- func (x *UserSignInResponse) GetUuid() int64
- func (*UserSignInResponse) ProtoMessage()
- func (x *UserSignInResponse) ProtoReflect() protoreflect.Message
- func (x *UserSignInResponse) Reset()
- func (x *UserSignInResponse) String() string
- type UserSignUpRequest
- func (*UserSignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UserSignUpRequest) GetConfirmPassword() string
- func (x *UserSignUpRequest) GetPassword() string
- func (x *UserSignUpRequest) GetUsername() string
- func (*UserSignUpRequest) ProtoMessage()
- func (x *UserSignUpRequest) ProtoReflect() protoreflect.Message
- func (x *UserSignUpRequest) Reset()
- func (x *UserSignUpRequest) String() string
- type UserSignUpResponse
Constants ¶
This section is empty.
Variables ¶
var File_proto_files_user_service_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignUp", Handler: _UserService_SignUp_Handler, }, { MethodName: "SignIn", Handler: _UserService_SignIn_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto_files/user_service.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 RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) SignIn ¶
func (UnimplementedUserServiceServer) SignIn(context.Context, *UserSignInRequest) (*UserSignInResponse, error)
func (UnimplementedUserServiceServer) SignUp ¶
func (UnimplementedUserServiceServer) SignUp(context.Context, *UserSignUpRequest) (*UserSignUpResponse, 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 UserServiceClient ¶
type UserServiceClient interface { SignUp(ctx context.Context, in *UserSignUpRequest, opts ...grpc.CallOption) (*UserSignUpResponse, error) SignIn(ctx context.Context, in *UserSignInRequest, opts ...grpc.CallOption) (*UserSignInResponse, 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 UserServiceServer ¶
type UserServiceServer interface { SignUp(context.Context, *UserSignUpRequest) (*UserSignUpResponse, error) SignIn(context.Context, *UserSignInRequest) (*UserSignInResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UserSignInRequest ¶
type UserSignInRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*UserSignInRequest) Descriptor
deprecated
func (*UserSignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserSignInRequest.ProtoReflect.Descriptor instead.
func (*UserSignInRequest) GetPassword ¶
func (x *UserSignInRequest) GetPassword() string
func (*UserSignInRequest) GetUsername ¶
func (x *UserSignInRequest) GetUsername() string
func (*UserSignInRequest) ProtoMessage ¶
func (*UserSignInRequest) ProtoMessage()
func (*UserSignInRequest) ProtoReflect ¶
func (x *UserSignInRequest) ProtoReflect() protoreflect.Message
func (*UserSignInRequest) Reset ¶
func (x *UserSignInRequest) Reset()
func (*UserSignInRequest) String ¶
func (x *UserSignInRequest) String() string
type UserSignInResponse ¶
type UserSignInResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Uuid int64 `protobuf:"varint,3,opt,name=uuid,proto3" json:"uuid,omitempty"` Username string `protobuf:"bytes,4,opt,name=username,proto3" json:"username,omitempty"` CreateTime string `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` UpdateTime string `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` Token string `protobuf:"bytes,8,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*UserSignInResponse) Descriptor
deprecated
func (*UserSignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserSignInResponse.ProtoReflect.Descriptor instead.
func (*UserSignInResponse) GetCode ¶
func (x *UserSignInResponse) GetCode() int32
func (*UserSignInResponse) GetCreateTime ¶ added in v0.1.18
func (x *UserSignInResponse) GetCreateTime() string
func (*UserSignInResponse) GetId ¶ added in v0.1.18
func (x *UserSignInResponse) GetId() int64
func (*UserSignInResponse) GetToken ¶
func (x *UserSignInResponse) GetToken() string
func (*UserSignInResponse) GetUpdateTime ¶ added in v0.1.18
func (x *UserSignInResponse) GetUpdateTime() string
func (*UserSignInResponse) GetUsername ¶ added in v0.1.18
func (x *UserSignInResponse) GetUsername() string
func (*UserSignInResponse) GetUuid ¶ added in v0.1.18
func (x *UserSignInResponse) GetUuid() int64
func (*UserSignInResponse) ProtoMessage ¶
func (*UserSignInResponse) ProtoMessage()
func (*UserSignInResponse) ProtoReflect ¶
func (x *UserSignInResponse) ProtoReflect() protoreflect.Message
func (*UserSignInResponse) Reset ¶
func (x *UserSignInResponse) Reset()
func (*UserSignInResponse) String ¶
func (x *UserSignInResponse) String() string
type UserSignUpRequest ¶
type UserSignUpRequest struct { Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` ConfirmPassword string `protobuf:"bytes,3,opt,name=confirm_password,json=confirmPassword,proto3" json:"confirm_password,omitempty"` // contains filtered or unexported fields }
func (*UserSignUpRequest) Descriptor
deprecated
func (*UserSignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use UserSignUpRequest.ProtoReflect.Descriptor instead.
func (*UserSignUpRequest) GetConfirmPassword ¶
func (x *UserSignUpRequest) GetConfirmPassword() string
func (*UserSignUpRequest) GetPassword ¶
func (x *UserSignUpRequest) GetPassword() string
func (*UserSignUpRequest) GetUsername ¶
func (x *UserSignUpRequest) GetUsername() string
func (*UserSignUpRequest) ProtoMessage ¶
func (*UserSignUpRequest) ProtoMessage()
func (*UserSignUpRequest) ProtoReflect ¶
func (x *UserSignUpRequest) ProtoReflect() protoreflect.Message
func (*UserSignUpRequest) Reset ¶
func (x *UserSignUpRequest) Reset()
func (*UserSignUpRequest) String ¶
func (x *UserSignUpRequest) String() string
type UserSignUpResponse ¶
type UserSignUpResponse struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*UserSignUpResponse) Descriptor
deprecated
func (*UserSignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserSignUpResponse.ProtoReflect.Descriptor instead.
func (*UserSignUpResponse) GetCode ¶
func (x *UserSignUpResponse) GetCode() int32
func (*UserSignUpResponse) ProtoMessage ¶
func (*UserSignUpResponse) ProtoMessage()
func (*UserSignUpResponse) ProtoReflect ¶
func (x *UserSignUpResponse) ProtoReflect() protoreflect.Message
func (*UserSignUpResponse) Reset ¶
func (x *UserSignUpResponse) Reset()
func (*UserSignUpResponse) String ¶
func (x *UserSignUpResponse) String() string