Documentation ¶
Index ¶
- func NewProductGrpc(ps service.Product) pb.ProductServiceServer
- type ProductGrpcImpl
- func (p *ProductGrpcImpl) FindManyByIdsForCart(ctx context.Context, data *pb.ProductIds) (*pb.ProductsCartRes, error)
- func (p *ProductGrpcImpl) ReduceStocks(ctx context.Context, data *pb.ReduceStocksReq) (*emptypb.Empty, error)
- func (p *ProductGrpcImpl) RollbackStocks(ctx context.Context, data *pb.RollbackStocksReq) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewProductGrpc ¶
func NewProductGrpc(ps service.Product) pb.ProductServiceServer
Types ¶
type ProductGrpcImpl ¶
type ProductGrpcImpl struct { pb.UnimplementedProductServiceServer // contains filtered or unexported fields }
func (*ProductGrpcImpl) FindManyByIdsForCart ¶
func (p *ProductGrpcImpl) FindManyByIdsForCart(ctx context.Context, data *pb.ProductIds) (*pb.ProductsCartRes, error)
func (*ProductGrpcImpl) ReduceStocks ¶
func (p *ProductGrpcImpl) ReduceStocks(ctx context.Context, data *pb.ReduceStocksReq) (*emptypb.Empty, error)
func (*ProductGrpcImpl) RollbackStocks ¶
func (p *ProductGrpcImpl) RollbackStocks(ctx context.Context, data *pb.RollbackStocksReq) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.