Documentation
¶
Index ¶
- type UserService
- func (s *UserService) Create(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
- func (s *UserService) Delete(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
- func (s *UserService) Get(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
- func (s *UserService) List(ctx context.Context, in *emptypb.Empty) (*pb.UserListResponse, error)
- func (s *UserService) Update(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserService ¶
func NewUserService(repo repositories.UserWriteRepository, factory *factories.UserFactory) *UserService
func (*UserService) Create ¶
func (s *UserService) Create(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
func (*UserService) Delete ¶
func (s *UserService) Delete(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
func (*UserService) Get ¶
func (s *UserService) Get(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
func (*UserService) List ¶
func (s *UserService) List(ctx context.Context, in *emptypb.Empty) (*pb.UserListResponse, error)
func (*UserService) Update ¶
func (s *UserService) Update(ctx context.Context, in *pb.UserRequest) (*pb.UserResponse, error)
Click to show internal directories.
Click to hide internal directories.