Documentation
¶
Index ¶
- Variables
- type GreeterService
- type WeightService
- func (s *WeightService) GetRecentWeight(ctx context.Context, req *pb.GetRecentWeightRequest) (*pb.GetRecentWeightReply, error)
- func (s *WeightService) GetWeightByMonth(ctx context.Context, req *pb.GetWeightByMonthRequest) (*pb.GetWeightByMonthReply, error)
- func (s *WeightService) RecordWeight(ctx context.Context, req *pb.RecordWeightRequest) (*pb.RecordWeightReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterService, NewWeightService)
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) *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 WeightService ¶
type WeightService struct {
pb.UnimplementedWeightServer
// contains filtered or unexported fields
}
func NewWeightService ¶
func NewWeightService(uc *biz.WeightUserCase) *WeightService
func (*WeightService) GetRecentWeight ¶
func (s *WeightService) GetRecentWeight(ctx context.Context, req *pb.GetRecentWeightRequest) (*pb.GetRecentWeightReply, error)
func (*WeightService) GetWeightByMonth ¶
func (s *WeightService) GetWeightByMonth(ctx context.Context, req *pb.GetWeightByMonthRequest) (*pb.GetWeightByMonthReply, error)
func (*WeightService) RecordWeight ¶
func (s *WeightService) RecordWeight(ctx context.Context, req *pb.RecordWeightRequest) (*pb.RecordWeightReply, error)
Click to show internal directories.
Click to hide internal directories.