Documentation ¶
Index ¶
- Variables
- type CartService
- func (s *CartService) AddItem(ctx context.Context, req *pb.AddItemRequest) (*pb.AddItemReply, error)
- func (s *CartService) DeleteCart(ctx context.Context, req *pb.DeleteCartRequest) (*pb.DeleteCartReply, error)
- func (s *CartService) DeleteItem(ctx context.Context, req *pb.DeleteItemRequest) (*pb.DeleteItemReply, error)
- func (s *CartService) GetCart(ctx context.Context, req *pb.GetCartRequest) (reply *pb.GetCartReply, err error)
- func (s *CartService) UpdateItem(ctx context.Context, req *pb.UpdateItemRequest) (*pb.UpdateItemReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewCartService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type CartService ¶
type CartService struct { pb.UnimplementedCartServer // contains filtered or unexported fields }
func NewCartService ¶
func NewCartService(cc *biz.CartUseCase, logger log.Logger) *CartService
func (*CartService) AddItem ¶
func (s *CartService) AddItem(ctx context.Context, req *pb.AddItemRequest) (*pb.AddItemReply, error)
func (*CartService) DeleteCart ¶
func (s *CartService) DeleteCart(ctx context.Context, req *pb.DeleteCartRequest) (*pb.DeleteCartReply, error)
func (*CartService) DeleteItem ¶
func (s *CartService) DeleteItem(ctx context.Context, req *pb.DeleteItemRequest) (*pb.DeleteItemReply, error)
func (*CartService) GetCart ¶
func (s *CartService) GetCart(ctx context.Context, req *pb.GetCartRequest) (reply *pb.GetCartReply, err error)
func (*CartService) UpdateItem ¶
func (s *CartService) UpdateItem(ctx context.Context, req *pb.UpdateItemRequest) (*pb.UpdateItemReply, error)
Click to show internal directories.
Click to hide internal directories.