Documentation ¶
Index ¶
- Variables
- type UserService
- func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.User, error)
- func (s *UserService) DeleteUser(ctx context.Context, req *userv1.DeleteUserRequest) (*emptypb.Empty, error)
- func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserRequest) (*userv1.User, error)
- func (s *UserService) ListUser(ctx context.Context, req *commonv1.PagingRequest) (*userv1.ListUserResponse, error)
- func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.User, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct { userv1.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(logger log.Logger, uc *data.UserRepo) *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, req *userv1.CreateUserRequest) (*userv1.User, error)
func (*UserService) DeleteUser ¶
func (s *UserService) DeleteUser(ctx context.Context, req *userv1.DeleteUserRequest) (*emptypb.Empty, error)
func (*UserService) GetUser ¶
func (s *UserService) GetUser(ctx context.Context, req *userv1.GetUserRequest) (*userv1.User, error)
func (*UserService) ListUser ¶
func (s *UserService) ListUser(ctx context.Context, req *commonv1.PagingRequest) (*userv1.ListUserResponse, error)
func (*UserService) UpdateUser ¶
func (s *UserService) UpdateUser(ctx context.Context, req *userv1.UpdateUserRequest) (*userv1.User, error)
Click to show internal directories.
Click to hide internal directories.