Versions in this module Expand all Collapse all v1 v1.0.0 Jul 12, 2024 Changes in this version + var File_def_inventory_inventory_proto protoreflect.FileDescriptor + var InventoryService_ServiceDesc = grpc.ServiceDesc + func RegisterInventoryServiceServer(s grpc.ServiceRegistrar, srv InventoryServiceServer) + type CheckProductStockQuantityRequest struct + Products []*ProductQuantity + func (*CheckProductStockQuantityRequest) Descriptor() ([]byte, []int) + func (*CheckProductStockQuantityRequest) ProtoMessage() + func (x *CheckProductStockQuantityRequest) GetProducts() []*ProductQuantity + func (x *CheckProductStockQuantityRequest) ProtoReflect() protoreflect.Message + func (x *CheckProductStockQuantityRequest) Reset() + func (x *CheckProductStockQuantityRequest) String() string + type CheckProductStockQuantityResponse struct + Products []*ProductStock + func (*CheckProductStockQuantityResponse) Descriptor() ([]byte, []int) + func (*CheckProductStockQuantityResponse) ProtoMessage() + func (x *CheckProductStockQuantityResponse) GetProducts() []*ProductStock + func (x *CheckProductStockQuantityResponse) ProtoReflect() protoreflect.Message + func (x *CheckProductStockQuantityResponse) Reset() + func (x *CheckProductStockQuantityResponse) String() string + type GetProductDetailsRequest struct + ProductCodes []string + func (*GetProductDetailsRequest) Descriptor() ([]byte, []int) + func (*GetProductDetailsRequest) ProtoMessage() + func (x *GetProductDetailsRequest) GetProductCodes() []string + func (x *GetProductDetailsRequest) ProtoReflect() protoreflect.Message + func (x *GetProductDetailsRequest) Reset() + func (x *GetProductDetailsRequest) String() string + type GetProductDetailsResponse struct + ProductDetails []*ProductDetails + func (*GetProductDetailsResponse) Descriptor() ([]byte, []int) + func (*GetProductDetailsResponse) ProtoMessage() + func (x *GetProductDetailsResponse) GetProductDetails() []*ProductDetails + func (x *GetProductDetailsResponse) ProtoReflect() protoreflect.Message + func (x *GetProductDetailsResponse) Reset() + func (x *GetProductDetailsResponse) String() string + type InventoryServiceClient interface + CheckProductStockQuantity func(ctx context.Context, in *CheckProductStockQuantityRequest, ...) (*CheckProductStockQuantityResponse, error) + GetProductDetails func(ctx context.Context, in *GetProductDetailsRequest, opts ...grpc.CallOption) (*GetProductDetailsResponse, error) + ReduceProductStockQuantity func(ctx context.Context, in *ReduceProductStockQuantityRequest, ...) (*ReduceProductStockQuantityResponse, error) + func NewInventoryServiceClient(cc grpc.ClientConnInterface) InventoryServiceClient + type InventoryServiceServer interface + CheckProductStockQuantity func(context.Context, *CheckProductStockQuantityRequest) (*CheckProductStockQuantityResponse, error) + GetProductDetails func(context.Context, *GetProductDetailsRequest) (*GetProductDetailsResponse, error) + ReduceProductStockQuantity func(context.Context, *ReduceProductStockQuantityRequest) (*ReduceProductStockQuantityResponse, error) + type ProductDetails struct + Description string + Name string + ProductCode string + UnitPriceCents int32 + func (*ProductDetails) Descriptor() ([]byte, []int) + func (*ProductDetails) ProtoMessage() + func (x *ProductDetails) GetDescription() string + func (x *ProductDetails) GetName() string + func (x *ProductDetails) GetProductCode() string + func (x *ProductDetails) GetUnitPriceCents() int32 + func (x *ProductDetails) ProtoReflect() protoreflect.Message + func (x *ProductDetails) Reset() + func (x *ProductDetails) String() string + type ProductQuantity struct + ProductCode string + Quantity int32 + func (*ProductQuantity) Descriptor() ([]byte, []int) + func (*ProductQuantity) ProtoMessage() + func (x *ProductQuantity) GetProductCode() string + func (x *ProductQuantity) GetQuantity() int32 + func (x *ProductQuantity) ProtoReflect() protoreflect.Message + func (x *ProductQuantity) Reset() + func (x *ProductQuantity) String() string + type ProductStock struct + AvailableQuantity int32 + IsAvailable bool + ProductCode string + func (*ProductStock) Descriptor() ([]byte, []int) + func (*ProductStock) ProtoMessage() + func (x *ProductStock) GetAvailableQuantity() int32 + func (x *ProductStock) GetIsAvailable() bool + func (x *ProductStock) GetProductCode() string + func (x *ProductStock) ProtoReflect() protoreflect.Message + func (x *ProductStock) Reset() + func (x *ProductStock) String() string + type ReduceProductStockQuantityRequest struct + Products []*ProductQuantity + func (*ReduceProductStockQuantityRequest) Descriptor() ([]byte, []int) + func (*ReduceProductStockQuantityRequest) ProtoMessage() + func (x *ReduceProductStockQuantityRequest) GetProducts() []*ProductQuantity + func (x *ReduceProductStockQuantityRequest) ProtoReflect() protoreflect.Message + func (x *ReduceProductStockQuantityRequest) Reset() + func (x *ReduceProductStockQuantityRequest) String() string + type ReduceProductStockQuantityResponse struct + Products []*ProductStock + func (*ReduceProductStockQuantityResponse) Descriptor() ([]byte, []int) + func (*ReduceProductStockQuantityResponse) ProtoMessage() + func (x *ReduceProductStockQuantityResponse) GetProducts() []*ProductStock + func (x *ReduceProductStockQuantityResponse) ProtoReflect() protoreflect.Message + func (x *ReduceProductStockQuantityResponse) Reset() + func (x *ReduceProductStockQuantityResponse) String() string + type UnimplementedInventoryServiceServer struct + func (UnimplementedInventoryServiceServer) CheckProductStockQuantity(context.Context, *CheckProductStockQuantityRequest) (*CheckProductStockQuantityResponse, error) + func (UnimplementedInventoryServiceServer) GetProductDetails(context.Context, *GetProductDetailsRequest) (*GetProductDetailsResponse, error) + func (UnimplementedInventoryServiceServer) ReduceProductStockQuantity(context.Context, *ReduceProductStockQuantityRequest) (*ReduceProductStockQuantityResponse, error) + type UnsafeInventoryServiceServer interface