Documentation ¶
Index ¶
- Variables
- type GreeterService
- type PersoncrudService
- func (s *PersoncrudService) CreatePerson(ctx context.Context, req *pb.CreatePersonRequest) (*pb.CreatePersonReply, error)
- func (s *PersoncrudService) GetPerson(ctx context.Context, req *pb.GetPersonRequest) (*pb.PersonReply, error)
- func (s *PersoncrudService) ListPersons(ctx context.Context, req *pb.ListPersonRequest) (*pb.ListPersonReply, error)
- func (s *PersoncrudService) UpdatePerson(ctx context.Context, req *pb.UpdatePersonRequest) (*pb.PersonReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterService)
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 PersoncrudService ¶
type PersoncrudService struct {
pb.UnimplementedPersoncrudServer
}
func NewPersoncrudService ¶
func NewPersoncrudService() *PersoncrudService
func (*PersoncrudService) CreatePerson ¶
func (s *PersoncrudService) CreatePerson(ctx context.Context, req *pb.CreatePersonRequest) (*pb.CreatePersonReply, error)
func (*PersoncrudService) GetPerson ¶
func (s *PersoncrudService) GetPerson(ctx context.Context, req *pb.GetPersonRequest) (*pb.PersonReply, error)
func (*PersoncrudService) ListPersons ¶
func (s *PersoncrudService) ListPersons(ctx context.Context, req *pb.ListPersonRequest) (*pb.ListPersonReply, error)
func (*PersoncrudService) UpdatePerson ¶
func (s *PersoncrudService) UpdatePerson(ctx context.Context, req *pb.UpdatePersonRequest) (*pb.PersonReply, error)
Click to show internal directories.
Click to hide internal directories.