Documentation ¶
Index ¶
- Variables
- type DemoService
- func (s *DemoService) CreateDemo(ctx context.Context, req *pb.CreateDemoRequest) (*pb.CreateDemoReply, error)
- func (s *DemoService) DeleteDemo(ctx context.Context, req *pb.DeleteDemoRequest) (*pb.DeleteDemoReply, error)
- func (s *DemoService) GetDemo(ctx context.Context, req *pb.GetDemoRequest) (*pb.GetDemoReply, error)
- func (s *DemoService) ListDemo(req *pb.ListDemoRequest, ds pb.Demo_ListDemoServer) error
- func (s *DemoService) UpdateDemo(ctx context.Context, req *pb.UpdateDemoRequest) (*pb.UpdateDemoReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewDemoService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type DemoService ¶
type DemoService struct { pb.UnimplementedDemoServer // contains filtered or unexported fields }
func NewDemoService ¶
func NewDemoService(db *biz.DemoBase, logger log.Logger) *DemoService
func (*DemoService) CreateDemo ¶
func (s *DemoService) CreateDemo(ctx context.Context, req *pb.CreateDemoRequest) (*pb.CreateDemoReply, error)
func (*DemoService) DeleteDemo ¶
func (s *DemoService) DeleteDemo(ctx context.Context, req *pb.DeleteDemoRequest) (*pb.DeleteDemoReply, error)
func (*DemoService) GetDemo ¶
func (s *DemoService) GetDemo(ctx context.Context, req *pb.GetDemoRequest) (*pb.GetDemoReply, error)
func (*DemoService) ListDemo ¶
func (s *DemoService) ListDemo(req *pb.ListDemoRequest, ds pb.Demo_ListDemoServer) error
func (*DemoService) UpdateDemo ¶
func (s *DemoService) UpdateDemo(ctx context.Context, req *pb.UpdateDemoRequest) (*pb.UpdateDemoReply, error)
Click to show internal directories.
Click to hide internal directories.