userservice

package
v0.0.0-...-e768eea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

func (s *UserServicegRPCServer) DeleteUser(ctx context.Context, id *pb.UserId) (*pb.Empty, error)

DeleteUser deletes the user having the provided userId

func (*UserServicegRPCServer) GetUserById

func (s *UserServicegRPCServer) GetUserById(ctx context.Context, id *pb.UserId) (*pb.User, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL