Documentation ¶
Index ¶
- Variables
- type GreeterService
- type IPodDataService
- type PodService
- func (s *PodService) AddPod(ctx context.Context, req *pb.PodInfo) (*pb.Response, error)
- func (s *PodService) DeletePod(ctx context.Context, req *pb.PodId) (*pb.Response, error)
- func (s *PodService) FindAllPod(ctx context.Context, req *pb.FindAll) (*pb.AllPod, error)
- func (s *PodService) FindPodByID(ctx context.Context, req *pb.PodId) (*pb.PodInfo, error)
- func (s *PodService) UpdatePod(ctx context.Context, req *pb.PodInfo) (*pb.Response, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterService, NewPodService)
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 IPodDataService ¶
type PodService ¶
type PodService struct { pb.UnimplementedPodServer // contains filtered or unexported fields }
func NewPodService ¶
func NewPodService(pu *biz.PodUsecase, logger log.Logger) *PodService
func (*PodService) FindAllPod ¶
func (*PodService) FindPodByID ¶
FindPodByID 查询单个信息
Click to show internal directories.
Click to hide internal directories.