Documentation
¶
Index ¶
- Variables
- type GreeterService
- type UserServiceService
- func (s *UserServiceService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
- func (s *UserServiceService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
- func (s *UserServiceService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
- func (s *UserServiceService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)
- func (s *UserServiceService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserServiceService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
type GreeterService struct { v1.UnimplementedGreeterServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *biz.GreeterUsecase, logger log.Logger) *GreeterService
NewGreeterService new a greeter service.
func (*GreeterService) SayHello ¶
func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
SayHello implements helloworld.GreeterServer
type UserServiceService ¶
type UserServiceService struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserServiceService ¶
func NewUserServiceService(user *biz.UserUsecase, logger log.Logger) *UserServiceService
func (*UserServiceService) CreateUser ¶
func (s *UserServiceService) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
func (*UserServiceService) DeleteUser ¶
func (s *UserServiceService) DeleteUser(ctx context.Context, req *pb.DeleteUserRequest) (*pb.DeleteUserReply, error)
func (*UserServiceService) GetUser ¶
func (s *UserServiceService) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
func (*UserServiceService) ListUser ¶
func (s *UserServiceService) ListUser(ctx context.Context, req *pb.ListUserRequest) (*pb.ListUserReply, error)
func (*UserServiceService) UpdateUser ¶
func (s *UserServiceService) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
Click to show internal directories.
Click to hide internal directories.