Documentation ¶
Index ¶
- type Service
- func (us *Service) Create(ctx context.Context, gr *pb.UserCreateRequest) (*pb.UserCreateResponse, error)
- func (us *Service) Delete(ctx context.Context, gr *pb.UserDeleteRequest) (*pb.UserDeleteResponse, error)
- func (us *Service) Get(ctx context.Context, gr *pb.UserGetRequest) (*pb.UserGetResponse, error)
- func (us *Service) GetByEmail(ctx context.Context, gr *pb.UserGetByEmailRequest) (*pb.UserGetByEmailResponse, error)
- func (us *Service) List(ctx context.Context, gr *pb.UserListRequest) (*pb.UserListResponse, error)
- func (us *Service) Update(ctx context.Context, gr *pb.UserUpdateRequest) (*pb.UserUpdateResponse, error)
- func (us *Service) VerifyPassword(ctx context.Context, gr *pb.UserVerifyPasswordRequest) (*pb.UserVerifyPasswordResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service ...
func (*Service) Create ¶
func (us *Service) Create(ctx context.Context, gr *pb.UserCreateRequest) (*pb.UserCreateResponse, error)
Create creates a new user into database.
func (*Service) Delete ¶
func (us *Service) Delete(ctx context.Context, gr *pb.UserDeleteRequest) (*pb.UserDeleteResponse, error)
Delete delete a user.
func (*Service) Get ¶
func (us *Service) Get(ctx context.Context, gr *pb.UserGetRequest) (*pb.UserGetResponse, error)
Get Gets a user by ID.
func (*Service) GetByEmail ¶
func (us *Service) GetByEmail(ctx context.Context, gr *pb.UserGetByEmailRequest) (*pb.UserGetByEmailResponse, error)
GetByEmail get a user by Email
func (*Service) List ¶
func (us *Service) List(ctx context.Context, gr *pb.UserListRequest) (*pb.UserListResponse, error)
List return a collection of users.
func (*Service) Update ¶
func (us *Service) Update(ctx context.Context, gr *pb.UserUpdateRequest) (*pb.UserUpdateResponse, error)
Update updates a user.
func (*Service) VerifyPassword ¶
func (us *Service) VerifyPassword(ctx context.Context, gr *pb.UserVerifyPasswordRequest) (*pb.UserVerifyPasswordResponse, error)
VerifyPassword ...
Click to show internal directories.
Click to hide internal directories.