Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewData, NewGreeterRepo, NewGreeterUsecase, NewGreeterService, )
Functions ¶
This section is empty.
Types ¶
type GreeterRepo ¶
type GreeterRepo interface { CreateGreeter(context.Context, *Greeter) error UpdateGreeter(context.Context, *Greeter) error }
func NewGreeterRepo ¶
func NewGreeterRepo(data *Data, logger log.Logger) GreeterRepo
NewGreeterRepo .
type GreeterService ¶
type GreeterService struct { v1.UnimplementedGreeterServer // contains filtered or unexported fields }
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *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 GreeterUsecase ¶
type GreeterUsecase struct {
// contains filtered or unexported fields
}
func NewGreeterUsecase ¶
func NewGreeterUsecase(repo GreeterRepo, logger log.Logger) *GreeterUsecase
Click to show internal directories.
Click to hide internal directories.