Documentation ¶
Index ¶
- Variables
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetAvatar() string
- func (x *CreateRequest) GetEmail() string
- func (x *CreateRequest) GetFirstName() string
- func (x *CreateRequest) GetGender() string
- func (x *CreateRequest) GetGoogleId() string
- func (x *CreateRequest) GetLastName() string
- func (x *CreateRequest) GetPassword() string
- func (x *CreateRequest) GetStatus() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type GetByEmailRequest
- type GetByUUIDRequest
- type IsEmailUniqueRequest
- func (*IsEmailUniqueRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsEmailUniqueRequest) GetEmail() string
- func (*IsEmailUniqueRequest) ProtoMessage()
- func (x *IsEmailUniqueRequest) ProtoReflect() protoreflect.Message
- func (x *IsEmailUniqueRequest) Reset()
- func (x *IsEmailUniqueRequest) String() string
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) Create(context.Context, *CreateRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) GetByEmail(context.Context, *GetByEmailRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) GetByUUID(context.Context, *GetByUUIDRequest) (*UserResponse, error)
- func (UnimplementedUserServiceServer) IsEmailUnique(context.Context, *IsEmailUniqueRequest) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) MarkWelcomeMessageSent(context.Context, *UpdateWelcomeMessageToSentRequest) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) UpdateGoogleID(context.Context, *UpdateGoogleIDRequest) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) UpdateLastLoginTime(context.Context, *UpdateLastLoginTimeRequest) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*empty.Empty, error)
- func (UnimplementedUserServiceServer) VerifiedEmail(context.Context, *VerifiedEmailRequest) (*empty.Empty, error)
- type UnsafeUserServiceServer
- type UpdateGoogleIDRequest
- func (*UpdateGoogleIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateGoogleIDRequest) GetGoogleId() string
- func (x *UpdateGoogleIDRequest) GetUserId() uint64
- func (*UpdateGoogleIDRequest) ProtoMessage()
- func (x *UpdateGoogleIDRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateGoogleIDRequest) Reset()
- func (x *UpdateGoogleIDRequest) String() string
- type UpdateLastLoginTimeRequest
- func (*UpdateLastLoginTimeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateLastLoginTimeRequest) GetUserId() uint64
- func (*UpdateLastLoginTimeRequest) ProtoMessage()
- func (x *UpdateLastLoginTimeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateLastLoginTimeRequest) Reset()
- func (x *UpdateLastLoginTimeRequest) String() string
- type UpdatePasswordRequest
- func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdatePasswordRequest) GetPassword() string
- func (x *UpdatePasswordRequest) GetUserId() uint64
- func (*UpdatePasswordRequest) ProtoMessage()
- func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdatePasswordRequest) Reset()
- func (x *UpdatePasswordRequest) String() string
- type UpdateWelcomeMessageToSentRequest
- func (*UpdateWelcomeMessageToSentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateWelcomeMessageToSentRequest) GetUserId() uint64
- func (*UpdateWelcomeMessageToSentRequest) ProtoMessage()
- func (x *UpdateWelcomeMessageToSentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateWelcomeMessageToSentRequest) Reset()
- func (x *UpdateWelcomeMessageToSentRequest) String() string
- type UserResponse
- func (*UserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UserResponse) GetEmail() string
- func (x *UserResponse) GetFirstName() string
- func (x *UserResponse) GetGender() string
- func (x *UserResponse) GetGoogleId() string
- func (x *UserResponse) GetId() uint64
- func (x *UserResponse) GetLastName() string
- func (x *UserResponse) GetPassword() string
- func (x *UserResponse) GetStatus() string
- func (x *UserResponse) GetUUID() string
- func (x *UserResponse) GetWelcomeMessageSent() bool
- func (*UserResponse) ProtoMessage()
- func (x *UserResponse) ProtoReflect() protoreflect.Message
- func (x *UserResponse) Reset()
- func (x *UserResponse) String() string
- type UserServiceClient
- type UserServiceServer
- type VerifiedEmailRequest
- func (*VerifiedEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VerifiedEmailRequest) GetEmail() string
- func (*VerifiedEmailRequest) ProtoMessage()
- func (x *VerifiedEmailRequest) ProtoReflect() protoreflect.Message
- func (x *VerifiedEmailRequest) Reset()
- func (x *VerifiedEmailRequest) String() string
Constants ¶
This section is empty.
Variables ¶
var File_internal_adapter_grpc_proto_user_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetByUUID", Handler: _UserService_GetByUUID_Handler, }, { MethodName: "GetByEmail", Handler: _UserService_GetByEmail_Handler, }, { MethodName: "IsEmailUnique", Handler: _UserService_IsEmailUnique_Handler, }, { MethodName: "Create", Handler: _UserService_Create_Handler, }, { MethodName: "VerifiedEmail", Handler: _UserService_VerifiedEmail_Handler, }, { MethodName: "MarkWelcomeMessageSent", Handler: _UserService_MarkWelcomeMessageSent_Handler, }, { MethodName: "UpdateGoogleID", Handler: _UserService_UpdateGoogleID_Handler, }, { MethodName: "UpdateLastLoginTime", Handler: _UserService_UpdateLastLoginTime_Handler, }, { MethodName: "UpdatePassword", Handler: _UserService_UpdatePassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/adapter/grpc/proto/user/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 RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type CreateRequest ¶
type CreateRequest struct { // The first name of the user. FirstName *string `protobuf:"bytes,1,opt,name=firstName,proto3,oneof" json:"firstName,omitempty"` // The last name of the user. LastName *string `protobuf:"bytes,2,opt,name=lastName,proto3,oneof" json:"lastName,omitempty"` // The email of the user. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // The hashed password of the user, there is a secure value. Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"` // The avatar url of the user. Avatar *string `protobuf:"bytes,5,opt,name=avatar,proto3,oneof" json:"avatar,omitempty"` // The google id of the user. GoogleId *string `protobuf:"bytes,6,opt,name=googleId,proto3,oneof" json:"googleId,omitempty"` // The status of the user. Status string `protobuf:"bytes,7,opt,name=status,proto3" json:"status,omitempty"` // The gender of the user. Gender string `protobuf:"bytes,8,opt,name=gender,proto3" json:"gender,omitempty"` // contains filtered or unexported fields }
Request message for Create.
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetAvatar ¶
func (x *CreateRequest) GetAvatar() string
func (*CreateRequest) GetEmail ¶
func (x *CreateRequest) GetEmail() string
func (*CreateRequest) GetFirstName ¶
func (x *CreateRequest) GetFirstName() string
func (*CreateRequest) GetGender ¶
func (x *CreateRequest) GetGender() string
func (*CreateRequest) GetGoogleId ¶
func (x *CreateRequest) GetGoogleId() string
func (*CreateRequest) GetLastName ¶
func (x *CreateRequest) GetLastName() string
func (*CreateRequest) GetPassword ¶
func (x *CreateRequest) GetPassword() string
func (*CreateRequest) GetStatus ¶
func (x *CreateRequest) GetStatus() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type GetByEmailRequest ¶
type GetByEmailRequest struct { // The email of the user. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Request message for GetByEmail.
func (*GetByEmailRequest) Descriptor
deprecated
func (*GetByEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByEmailRequest.ProtoReflect.Descriptor instead.
func (*GetByEmailRequest) GetEmail ¶
func (x *GetByEmailRequest) GetEmail() string
func (*GetByEmailRequest) ProtoMessage ¶
func (*GetByEmailRequest) ProtoMessage()
func (*GetByEmailRequest) ProtoReflect ¶
func (x *GetByEmailRequest) ProtoReflect() protoreflect.Message
func (*GetByEmailRequest) Reset ¶
func (x *GetByEmailRequest) Reset()
func (*GetByEmailRequest) String ¶
func (x *GetByEmailRequest) String() string
type GetByUUIDRequest ¶
type GetByUUIDRequest struct { // The unique UUID of the user. UserUUID string `protobuf:"bytes,1,opt,name=userUUID,proto3" json:"userUUID,omitempty"` // contains filtered or unexported fields }
Request message for GetByUUID.
func (*GetByUUIDRequest) Descriptor
deprecated
func (*GetByUUIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByUUIDRequest.ProtoReflect.Descriptor instead.
func (*GetByUUIDRequest) GetUserUUID ¶
func (x *GetByUUIDRequest) GetUserUUID() string
func (*GetByUUIDRequest) ProtoMessage ¶
func (*GetByUUIDRequest) ProtoMessage()
func (*GetByUUIDRequest) ProtoReflect ¶
func (x *GetByUUIDRequest) ProtoReflect() protoreflect.Message
func (*GetByUUIDRequest) Reset ¶
func (x *GetByUUIDRequest) Reset()
func (*GetByUUIDRequest) String ¶
func (x *GetByUUIDRequest) String() string
type IsEmailUniqueRequest ¶
type IsEmailUniqueRequest struct { // The email to check for uniqueness. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Request message for IsEmailUnique.
func (*IsEmailUniqueRequest) Descriptor
deprecated
func (*IsEmailUniqueRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsEmailUniqueRequest.ProtoReflect.Descriptor instead.
func (*IsEmailUniqueRequest) GetEmail ¶
func (x *IsEmailUniqueRequest) GetEmail() string
func (*IsEmailUniqueRequest) ProtoMessage ¶
func (*IsEmailUniqueRequest) ProtoMessage()
func (*IsEmailUniqueRequest) ProtoReflect ¶
func (x *IsEmailUniqueRequest) ProtoReflect() protoreflect.Message
func (*IsEmailUniqueRequest) Reset ¶
func (x *IsEmailUniqueRequest) Reset()
func (*IsEmailUniqueRequest) String ¶
func (x *IsEmailUniqueRequest) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) Create ¶
func (UnimplementedUserServiceServer) Create(context.Context, *CreateRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) GetByEmail ¶
func (UnimplementedUserServiceServer) GetByEmail(context.Context, *GetByEmailRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) GetByUUID ¶
func (UnimplementedUserServiceServer) GetByUUID(context.Context, *GetByUUIDRequest) (*UserResponse, error)
func (UnimplementedUserServiceServer) IsEmailUnique ¶
func (UnimplementedUserServiceServer) IsEmailUnique(context.Context, *IsEmailUniqueRequest) (*empty.Empty, error)
func (UnimplementedUserServiceServer) MarkWelcomeMessageSent ¶
func (UnimplementedUserServiceServer) MarkWelcomeMessageSent(context.Context, *UpdateWelcomeMessageToSentRequest) (*empty.Empty, error)
func (UnimplementedUserServiceServer) UpdateGoogleID ¶
func (UnimplementedUserServiceServer) UpdateGoogleID(context.Context, *UpdateGoogleIDRequest) (*empty.Empty, error)
func (UnimplementedUserServiceServer) UpdateLastLoginTime ¶
func (UnimplementedUserServiceServer) UpdateLastLoginTime(context.Context, *UpdateLastLoginTimeRequest) (*empty.Empty, error)
func (UnimplementedUserServiceServer) UpdatePassword ¶
func (UnimplementedUserServiceServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*empty.Empty, error)
func (UnimplementedUserServiceServer) VerifiedEmail ¶
func (UnimplementedUserServiceServer) VerifiedEmail(context.Context, *VerifiedEmailRequest) (*empty.Empty, 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 UpdateGoogleIDRequest ¶
type UpdateGoogleIDRequest struct { // The user ID for whom to update google id. UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // The google identifier user have a request register/login. GoogleId string `protobuf:"bytes,2,opt,name=googleId,proto3" json:"googleId,omitempty"` // contains filtered or unexported fields }
Request message for UpdateGoogleID.
func (*UpdateGoogleIDRequest) Descriptor
deprecated
func (*UpdateGoogleIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateGoogleIDRequest.ProtoReflect.Descriptor instead.
func (*UpdateGoogleIDRequest) GetGoogleId ¶
func (x *UpdateGoogleIDRequest) GetGoogleId() string
func (*UpdateGoogleIDRequest) GetUserId ¶
func (x *UpdateGoogleIDRequest) GetUserId() uint64
func (*UpdateGoogleIDRequest) ProtoMessage ¶
func (*UpdateGoogleIDRequest) ProtoMessage()
func (*UpdateGoogleIDRequest) ProtoReflect ¶
func (x *UpdateGoogleIDRequest) ProtoReflect() protoreflect.Message
func (*UpdateGoogleIDRequest) Reset ¶
func (x *UpdateGoogleIDRequest) Reset()
func (*UpdateGoogleIDRequest) String ¶
func (x *UpdateGoogleIDRequest) String() string
type UpdateLastLoginTimeRequest ¶
type UpdateLastLoginTimeRequest struct { // The user ID for whom to update last login time. UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
Request message for UpdateLastLoginTime.
func (*UpdateLastLoginTimeRequest) Descriptor
deprecated
func (*UpdateLastLoginTimeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateLastLoginTimeRequest.ProtoReflect.Descriptor instead.
func (*UpdateLastLoginTimeRequest) GetUserId ¶
func (x *UpdateLastLoginTimeRequest) GetUserId() uint64
func (*UpdateLastLoginTimeRequest) ProtoMessage ¶
func (*UpdateLastLoginTimeRequest) ProtoMessage()
func (*UpdateLastLoginTimeRequest) ProtoReflect ¶
func (x *UpdateLastLoginTimeRequest) ProtoReflect() protoreflect.Message
func (*UpdateLastLoginTimeRequest) Reset ¶
func (x *UpdateLastLoginTimeRequest) Reset()
func (*UpdateLastLoginTimeRequest) String ¶
func (x *UpdateLastLoginTimeRequest) String() string
type UpdatePasswordRequest ¶
type UpdatePasswordRequest struct { // The user ID for whom to update password. UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // The hashed password of the user, there is a secure value. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Request message for UpdatePassword.
func (*UpdatePasswordRequest) Descriptor
deprecated
func (*UpdatePasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.
func (*UpdatePasswordRequest) GetPassword ¶
func (x *UpdatePasswordRequest) GetPassword() string
func (*UpdatePasswordRequest) GetUserId ¶
func (x *UpdatePasswordRequest) GetUserId() uint64
func (*UpdatePasswordRequest) ProtoMessage ¶
func (*UpdatePasswordRequest) ProtoMessage()
func (*UpdatePasswordRequest) ProtoReflect ¶
func (x *UpdatePasswordRequest) ProtoReflect() protoreflect.Message
func (*UpdatePasswordRequest) Reset ¶
func (x *UpdatePasswordRequest) Reset()
func (*UpdatePasswordRequest) String ¶
func (x *UpdatePasswordRequest) String() string
type UpdateWelcomeMessageToSentRequest ¶
type UpdateWelcomeMessageToSentRequest struct { // The user ID for whom to update the welcome message sent flag. UserId uint64 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"` // contains filtered or unexported fields }
Request message for MarkWelcomeMessageSent.
func (*UpdateWelcomeMessageToSentRequest) Descriptor
deprecated
func (*UpdateWelcomeMessageToSentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWelcomeMessageToSentRequest.ProtoReflect.Descriptor instead.
func (*UpdateWelcomeMessageToSentRequest) GetUserId ¶
func (x *UpdateWelcomeMessageToSentRequest) GetUserId() uint64
func (*UpdateWelcomeMessageToSentRequest) ProtoMessage ¶
func (*UpdateWelcomeMessageToSentRequest) ProtoMessage()
func (*UpdateWelcomeMessageToSentRequest) ProtoReflect ¶
func (x *UpdateWelcomeMessageToSentRequest) ProtoReflect() protoreflect.Message
func (*UpdateWelcomeMessageToSentRequest) Reset ¶
func (x *UpdateWelcomeMessageToSentRequest) Reset()
func (*UpdateWelcomeMessageToSentRequest) String ¶
func (x *UpdateWelcomeMessageToSentRequest) String() string
type UserResponse ¶
type UserResponse struct { // The unique ID of the user. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // The unique UUID of the user. UUID string `protobuf:"bytes,2,opt,name=UUID,proto3" json:"UUID,omitempty"` // The first name of the user. FirstName *string `protobuf:"bytes,3,opt,name=firstName,proto3,oneof" json:"firstName,omitempty"` // The last name of the user. LastName *string `protobuf:"bytes,4,opt,name=lastName,proto3,oneof" json:"lastName,omitempty"` // The email of the user. Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` // The status of the user. Status string `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // The hashed password of the user, there is a secure value. Password *string `protobuf:"bytes,7,opt,name=password,proto3,oneof" json:"password,omitempty"` // Whether the welcome message has been sent. WelcomeMessageSent bool `protobuf:"varint,8,opt,name=welcomeMessageSent,proto3" json:"welcomeMessageSent,omitempty"` // The google Id of user has a authentication request. GoogleId *string `protobuf:"bytes,9,opt,name=googleId,proto3,oneof" json:"googleId,omitempty"` // The gender of user. Gender string `protobuf:"bytes,10,opt,name=gender,proto3" json:"gender,omitempty"` // contains filtered or unexported fields }
Response message containing user details.
func (*UserResponse) Descriptor
deprecated
func (*UserResponse) Descriptor() ([]byte, []int)
Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.
func (*UserResponse) GetEmail ¶
func (x *UserResponse) GetEmail() string
func (*UserResponse) GetFirstName ¶
func (x *UserResponse) GetFirstName() string
func (*UserResponse) GetGender ¶
func (x *UserResponse) GetGender() string
func (*UserResponse) GetGoogleId ¶
func (x *UserResponse) GetGoogleId() string
func (*UserResponse) GetId ¶
func (x *UserResponse) GetId() uint64
func (*UserResponse) GetLastName ¶
func (x *UserResponse) GetLastName() string
func (*UserResponse) GetPassword ¶
func (x *UserResponse) GetPassword() string
func (*UserResponse) GetStatus ¶
func (x *UserResponse) GetStatus() string
func (*UserResponse) GetUUID ¶
func (x *UserResponse) GetUUID() string
func (*UserResponse) GetWelcomeMessageSent ¶
func (x *UserResponse) GetWelcomeMessageSent() bool
func (*UserResponse) ProtoMessage ¶
func (*UserResponse) ProtoMessage()
func (*UserResponse) ProtoReflect ¶
func (x *UserResponse) ProtoReflect() protoreflect.Message
func (*UserResponse) Reset ¶
func (x *UserResponse) Reset()
func (*UserResponse) String ¶
func (x *UserResponse) String() string
type UserServiceClient ¶
type UserServiceClient interface { // Retrieves user information by UUID. GetByUUID(ctx context.Context, in *GetByUUIDRequest, opts ...grpc.CallOption) (*UserResponse, error) // Retrieves user information by email. GetByEmail(ctx context.Context, in *GetByEmailRequest, opts ...grpc.CallOption) (*UserResponse, error) // Checks if an email is unique. IsEmailUnique(ctx context.Context, in *IsEmailUniqueRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Creates a new user. Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*UserResponse, error) // Marks the user's email as verified. VerifiedEmail(ctx context.Context, in *VerifiedEmailRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the flag indicating whether the welcome message was sent. MarkWelcomeMessageSent(ctx context.Context, in *UpdateWelcomeMessageToSentRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the user google ID. UpdateGoogleID(ctx context.Context, in *UpdateGoogleIDRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the user lat login time. UpdateLastLoginTime(ctx context.Context, in *UpdateLastLoginTimeRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Updates the user password. UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*empty.Empty, 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 { // Retrieves user information by UUID. GetByUUID(context.Context, *GetByUUIDRequest) (*UserResponse, error) // Retrieves user information by email. GetByEmail(context.Context, *GetByEmailRequest) (*UserResponse, error) // Checks if an email is unique. IsEmailUnique(context.Context, *IsEmailUniqueRequest) (*empty.Empty, error) // Creates a new user. Create(context.Context, *CreateRequest) (*UserResponse, error) // Marks the user's email as verified. VerifiedEmail(context.Context, *VerifiedEmailRequest) (*empty.Empty, error) // Updates the flag indicating whether the welcome message was sent. MarkWelcomeMessageSent(context.Context, *UpdateWelcomeMessageToSentRequest) (*empty.Empty, error) // Updates the user google ID. UpdateGoogleID(context.Context, *UpdateGoogleIDRequest) (*empty.Empty, error) // Updates the user lat login time. UpdateLastLoginTime(context.Context, *UpdateLastLoginTimeRequest) (*empty.Empty, error) // Updates the user password. UpdatePassword(context.Context, *UpdatePasswordRequest) (*empty.Empty, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type VerifiedEmailRequest ¶
type VerifiedEmailRequest struct { // The email to mark as verified. Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
Request message for VerifiedEmail.
func (*VerifiedEmailRequest) Descriptor
deprecated
func (*VerifiedEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifiedEmailRequest.ProtoReflect.Descriptor instead.
func (*VerifiedEmailRequest) GetEmail ¶
func (x *VerifiedEmailRequest) GetEmail() string
func (*VerifiedEmailRequest) ProtoMessage ¶
func (*VerifiedEmailRequest) ProtoMessage()
func (*VerifiedEmailRequest) ProtoReflect ¶
func (x *VerifiedEmailRequest) ProtoReflect() protoreflect.Message
func (*VerifiedEmailRequest) Reset ¶
func (x *VerifiedEmailRequest) Reset()
func (*VerifiedEmailRequest) String ¶
func (x *VerifiedEmailRequest) String() string