Documentation ¶
Index ¶
- type UserServicegRPCServer
- func (s *UserServicegRPCServer) CreateUser(ctx context.Context, userCreation *pb.UserCreation) (*pb.UserCreationResponse, error)
- func (s *UserServicegRPCServer) DeleteUser(ctx context.Context, id *pb.UserId) (*pb.Empty, error)
- func (s *UserServicegRPCServer) GetUserById(ctx context.Context, id *pb.UserId) (*pb.User, error)
- func (s *UserServicegRPCServer) GetUsers(filterParams *pb.UserFilter, stream pb.UserService_GetUsersServer) error
- func (s *UserServicegRPCServer) UpdateUser(ctx context.Context, userUpdate *pb.UserUpdate) (*pb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserServicegRPCServer ¶
type UserServicegRPCServer struct { pb.UnimplementedUserServiceServer US services.IUserService }
func (*UserServicegRPCServer) CreateUser ¶
func (s *UserServicegRPCServer) CreateUser(ctx context.Context, userCreation *pb.UserCreation) (*pb.UserCreationResponse, error)
CreateUser returns the ID of the newly created user
func (*UserServicegRPCServer) DeleteUser ¶
DeleteUser deletes the user having the provided userId
func (*UserServicegRPCServer) GetUserById ¶
GetUserById returns the user having the provided userId
func (*UserServicegRPCServer) GetUsers ¶
func (s *UserServicegRPCServer) GetUsers(filterParams *pb.UserFilter, stream pb.UserService_GetUsersServer) error
GetUsers returns the stream of the Users, filtered by parameters in the filterParams
func (*UserServicegRPCServer) UpdateUser ¶
func (s *UserServicegRPCServer) UpdateUser(ctx context.Context, userUpdate *pb.UserUpdate) (*pb.Empty, error)
UpdateUser updates the user having the provided userId
Click to show internal directories.
Click to hide internal directories.