Versions in this module Expand all Collapse all v1 v1.0.1 Mar 19, 2022 v0 v0.0.1 Mar 19, 2022 Changes in this version + var File_proto_proto protoreflect.FileDescriptor + var UserService_ServiceDesc = grpc.ServiceDesc + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type ChangePasswordRequest struct + Code string + Email string + NewPassword string + func (*ChangePasswordRequest) Descriptor() ([]byte, []int) + func (*ChangePasswordRequest) ProtoMessage() + func (m *ChangePasswordRequest) Validate() error + func (m *ChangePasswordRequest) ValidateAll() error + func (x *ChangePasswordRequest) GetCode() string + func (x *ChangePasswordRequest) GetEmail() string + func (x *ChangePasswordRequest) GetNewPassword() string + func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message + func (x *ChangePasswordRequest) Reset() + func (x *ChangePasswordRequest) String() string + type ChangePasswordRequestMultiError []error + func (m ChangePasswordRequestMultiError) AllErrors() []error + func (m ChangePasswordRequestMultiError) Error() string + type ChangePasswordRequestValidationError struct + func (e ChangePasswordRequestValidationError) Cause() error + func (e ChangePasswordRequestValidationError) Error() string + func (e ChangePasswordRequestValidationError) ErrorName() string + func (e ChangePasswordRequestValidationError) Field() string + func (e ChangePasswordRequestValidationError) Key() bool + func (e ChangePasswordRequestValidationError) Reason() string + type Email struct + Email string + func (*Email) Descriptor() ([]byte, []int) + func (*Email) ProtoMessage() + func (m *Email) Validate() error + func (m *Email) ValidateAll() error + func (x *Email) GetEmail() string + func (x *Email) ProtoReflect() protoreflect.Message + func (x *Email) Reset() + func (x *Email) String() string + type EmailAndPassword struct + Email string + Password string + func (*EmailAndPassword) Descriptor() ([]byte, []int) + func (*EmailAndPassword) ProtoMessage() + func (m *EmailAndPassword) Validate() error + func (m *EmailAndPassword) ValidateAll() error + func (x *EmailAndPassword) GetEmail() string + func (x *EmailAndPassword) GetPassword() string + func (x *EmailAndPassword) ProtoReflect() protoreflect.Message + func (x *EmailAndPassword) Reset() + func (x *EmailAndPassword) String() string + type EmailAndPasswordMultiError []error + func (m EmailAndPasswordMultiError) AllErrors() []error + func (m EmailAndPasswordMultiError) Error() string + type EmailAndPasswordValidationError struct + func (e EmailAndPasswordValidationError) Cause() error + func (e EmailAndPasswordValidationError) Error() string + func (e EmailAndPasswordValidationError) ErrorName() string + func (e EmailAndPasswordValidationError) Field() string + func (e EmailAndPasswordValidationError) Key() bool + func (e EmailAndPasswordValidationError) Reason() string + type EmailMultiError []error + func (m EmailMultiError) AllErrors() []error + func (m EmailMultiError) Error() string + type EmailValidationError struct + func (e EmailValidationError) Cause() error + func (e EmailValidationError) Error() string + func (e EmailValidationError) ErrorName() string + func (e EmailValidationError) Field() string + func (e EmailValidationError) Key() bool + func (e EmailValidationError) Reason() string + type GetUserByIDRequest struct + Id int64 + func (*GetUserByIDRequest) Descriptor() ([]byte, []int) + func (*GetUserByIDRequest) ProtoMessage() + func (m *GetUserByIDRequest) Validate() error + func (m *GetUserByIDRequest) ValidateAll() error + func (x *GetUserByIDRequest) GetId() int64 + func (x *GetUserByIDRequest) ProtoReflect() protoreflect.Message + func (x *GetUserByIDRequest) Reset() + func (x *GetUserByIDRequest) String() string + type GetUserByIDRequestMultiError []error + func (m GetUserByIDRequestMultiError) AllErrors() []error + func (m GetUserByIDRequestMultiError) Error() string + type GetUserByIDRequestValidationError struct + func (e GetUserByIDRequestValidationError) Cause() error + func (e GetUserByIDRequestValidationError) Error() string + func (e GetUserByIDRequestValidationError) ErrorName() string + func (e GetUserByIDRequestValidationError) Field() string + func (e GetUserByIDRequestValidationError) Key() bool + func (e GetUserByIDRequestValidationError) Reason() string + type IsCorrect struct + IsCorrect bool + func (*IsCorrect) Descriptor() ([]byte, []int) + func (*IsCorrect) ProtoMessage() + func (m *IsCorrect) Validate() error + func (m *IsCorrect) ValidateAll() error + func (x *IsCorrect) GetIsCorrect() bool + func (x *IsCorrect) ProtoReflect() protoreflect.Message + func (x *IsCorrect) Reset() + func (x *IsCorrect) String() string + type IsCorrectMultiError []error + func (m IsCorrectMultiError) AllErrors() []error + func (m IsCorrectMultiError) Error() string + type IsCorrectValidationError struct + func (e IsCorrectValidationError) Cause() error + func (e IsCorrectValidationError) Error() string + func (e IsCorrectValidationError) ErrorName() string + func (e IsCorrectValidationError) Field() string + func (e IsCorrectValidationError) Key() bool + func (e IsCorrectValidationError) Reason() string + type NewUser struct + DefaultPharmacyId int64 + Email string + IsBlocked bool + Name string + Password string + Role string + Surname string + UseIpCheck bool + func (*NewUser) Descriptor() ([]byte, []int) + func (*NewUser) ProtoMessage() + func (m *NewUser) Validate() error + func (m *NewUser) ValidateAll() error + func (x *NewUser) GetDefaultPharmacyId() int64 + func (x *NewUser) GetEmail() string + func (x *NewUser) GetIsBlocked() bool + func (x *NewUser) GetName() string + func (x *NewUser) GetPassword() string + func (x *NewUser) GetRole() string + func (x *NewUser) GetSurname() string + func (x *NewUser) GetUseIpCheck() bool + func (x *NewUser) ProtoReflect() protoreflect.Message + func (x *NewUser) Reset() + func (x *NewUser) String() string + type NewUserMultiError []error + func (m NewUserMultiError) AllErrors() []error + func (m NewUserMultiError) Error() string + type NewUserValidationError struct + func (e NewUserValidationError) Cause() error + func (e NewUserValidationError) Error() string + func (e NewUserValidationError) ErrorName() string + func (e NewUserValidationError) Field() string + func (e NewUserValidationError) Key() bool + func (e NewUserValidationError) Reason() string + type PaginationRequest struct + LastId int64 + Limit int64 + func (*PaginationRequest) Descriptor() ([]byte, []int) + func (*PaginationRequest) ProtoMessage() + func (m *PaginationRequest) Validate() error + func (m *PaginationRequest) ValidateAll() error + func (x *PaginationRequest) GetLastId() int64 + func (x *PaginationRequest) GetLimit() int64 + func (x *PaginationRequest) ProtoReflect() protoreflect.Message + func (x *PaginationRequest) Reset() + func (x *PaginationRequest) String() string + type PaginationRequestMultiError []error + func (m PaginationRequestMultiError) AllErrors() []error + func (m PaginationRequestMultiError) Error() string + type PaginationRequestValidationError struct + func (e PaginationRequestValidationError) Cause() error + func (e PaginationRequestValidationError) Error() string + func (e PaginationRequestValidationError) ErrorName() string + func (e PaginationRequestValidationError) Field() string + func (e PaginationRequestValidationError) Key() bool + func (e PaginationRequestValidationError) Reason() string + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) ChangePassword(context.Context, *ChangePasswordRequest) (*emptypb.Empty, error) + func (UnimplementedUserServiceServer) CreateUser(context.Context, *NewUser) (*emptypb.Empty, error) + func (UnimplementedUserServiceServer) GetByEmail(context.Context, *Email) (*User, error) + func (UnimplementedUserServiceServer) GetByID(context.Context, *GetUserByIDRequest) (*User, error) + func (UnimplementedUserServiceServer) GetUsers(context.Context, *PaginationRequest) (*Users, error) + func (UnimplementedUserServiceServer) IsPasswordCorrect(context.Context, *EmailAndPassword) (*IsCorrect, error) + func (UnimplementedUserServiceServer) RequestToChangePassword(context.Context, *Email) (*emptypb.Empty, error) + func (UnimplementedUserServiceServer) UpdateUser(context.Context, *User) (*emptypb.Empty, error) + type UnsafeUserServiceServer interface + type User struct + DefaultPharmacyId int64 + Email string + Id int64 + IsBlocked bool + Name string + Role string + Surname string + UseIpCheck bool + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (m *User) Validate() error + func (m *User) ValidateAll() error + func (x *User) GetDefaultPharmacyId() int64 + func (x *User) GetEmail() string + func (x *User) GetId() int64 + func (x *User) GetIsBlocked() bool + func (x *User) GetName() string + func (x *User) GetRole() string + func (x *User) GetSurname() string + func (x *User) GetUseIpCheck() bool + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserMultiError []error + func (m UserMultiError) AllErrors() []error + func (m UserMultiError) Error() string + type UserServiceClient interface + ChangePassword func(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + CreateUser func(ctx context.Context, in *NewUser, opts ...grpc.CallOption) (*emptypb.Empty, error) + GetByEmail func(ctx context.Context, in *Email, opts ...grpc.CallOption) (*User, error) + GetByID func(ctx context.Context, in *GetUserByIDRequest, opts ...grpc.CallOption) (*User, error) + GetUsers func(ctx context.Context, in *PaginationRequest, opts ...grpc.CallOption) (*Users, error) + IsPasswordCorrect func(ctx context.Context, in *EmailAndPassword, opts ...grpc.CallOption) (*IsCorrect, error) + RequestToChangePassword func(ctx context.Context, in *Email, opts ...grpc.CallOption) (*emptypb.Empty, error) + UpdateUser func(ctx context.Context, in *User, opts ...grpc.CallOption) (*emptypb.Empty, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + ChangePassword func(context.Context, *ChangePasswordRequest) (*emptypb.Empty, error) + CreateUser func(context.Context, *NewUser) (*emptypb.Empty, error) + GetByEmail func(context.Context, *Email) (*User, error) + GetByID func(context.Context, *GetUserByIDRequest) (*User, error) + GetUsers func(context.Context, *PaginationRequest) (*Users, error) + IsPasswordCorrect func(context.Context, *EmailAndPassword) (*IsCorrect, error) + RequestToChangePassword func(context.Context, *Email) (*emptypb.Empty, error) + UpdateUser func(context.Context, *User) (*emptypb.Empty, error) + type UserValidationError struct + func (e UserValidationError) Cause() error + func (e UserValidationError) Error() string + func (e UserValidationError) ErrorName() string + func (e UserValidationError) Field() string + func (e UserValidationError) Key() bool + func (e UserValidationError) Reason() string + type Users struct + Users []*User + func (*Users) Descriptor() ([]byte, []int) + func (*Users) ProtoMessage() + func (m *Users) Validate() error + func (m *Users) ValidateAll() error + func (x *Users) GetUsers() []*User + func (x *Users) ProtoReflect() protoreflect.Message + func (x *Users) Reset() + func (x *Users) String() string + type UsersMultiError []error + func (m UsersMultiError) AllErrors() []error + func (m UsersMultiError) Error() string + type UsersValidationError struct + func (e UsersValidationError) Cause() error + func (e UsersValidationError) Error() string + func (e UsersValidationError) ErrorName() string + func (e UsersValidationError) Field() string + func (e UsersValidationError) Key() bool + func (e UsersValidationError) Reason() string