Documentation ¶
Index ¶
- Variables
- func CreateClient()
- type GreeterService
- type PersonService
- func (s *PersonService) CreatePerson(ctx context.Context, req *v1.CreatePersonRequest) (*v1.CreatePersonReply, error)
- func (s *PersonService) GetPerson(ctx context.Context, req *v1.GetPersonRequest) (*v1.PersonReply, error)
- func (s *PersonService) ListPersons(ctx context.Context, req *v1.ListPersonRequest) (*v1.ListPersonReply, error)
- func (s *PersonService) UpdatePerson(ctx context.Context, req *v1.UpdatePersonRequest) (*v1.PersonReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewPersonService)
ProviderSet is service providers.
Functions ¶
func CreateClient ¶
func CreateClient()
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 PersonService ¶
type PersonService struct { v1.UnimplementedPersonServer // contains filtered or unexported fields }
func NewPersonService ¶
func NewPersonService(uc *biz.PersonUsecase, logger log.Logger) *PersonService
func (*PersonService) CreatePerson ¶
func (s *PersonService) CreatePerson(ctx context.Context, req *v1.CreatePersonRequest) (*v1.CreatePersonReply, error)
func (*PersonService) GetPerson ¶
func (s *PersonService) GetPerson(ctx context.Context, req *v1.GetPersonRequest) (*v1.PersonReply, error)
func (*PersonService) ListPersons ¶
func (s *PersonService) ListPersons(ctx context.Context, req *v1.ListPersonRequest) (*v1.ListPersonReply, error)
func (*PersonService) UpdatePerson ¶
func (s *PersonService) UpdatePerson(ctx context.Context, req *v1.UpdatePersonRequest) (*v1.PersonReply, error)
Click to show internal directories.
Click to hide internal directories.