Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterOrderServer(s grpc.ServiceRegistrar, srv OrderServer)
- type AddProductToCartRequest
- func (*AddProductToCartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddProductToCartRequest) GetBranchProductId() string
- func (x *AddProductToCartRequest) GetQuantity() int32
- func (*AddProductToCartRequest) ProtoMessage()
- func (x *AddProductToCartRequest) ProtoReflect() protoreflect.Message
- func (x *AddProductToCartRequest) Reset()
- func (x *AddProductToCartRequest) String() string
- type AddProductToCartResponse
- func (*AddProductToCartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddProductToCartResponse) GetMessage() string
- func (*AddProductToCartResponse) ProtoMessage()
- func (x *AddProductToCartResponse) ProtoReflect() protoreflect.Message
- func (x *AddProductToCartResponse) Reset()
- func (x *AddProductToCartResponse) String() string
- type GetCartRequest
- type GetCartResponse
- func (*GetCartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCartResponse) GetMessage() string
- func (x *GetCartResponse) GetProducts() []*GetProduct
- func (x *GetCartResponse) GetTotalPrice() float32
- func (*GetCartResponse) ProtoMessage()
- func (x *GetCartResponse) ProtoReflect() protoreflect.Message
- func (x *GetCartResponse) Reset()
- func (x *GetCartResponse) String() string
- type GetCartTotalRequest
- func (*GetCartTotalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCartTotalRequest) GetCartId() string
- func (*GetCartTotalRequest) ProtoMessage()
- func (x *GetCartTotalRequest) ProtoReflect() protoreflect.Message
- func (x *GetCartTotalRequest) Reset()
- func (x *GetCartTotalRequest) String() string
- type GetCartTotalResponse
- func (*GetCartTotalResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCartTotalResponse) GetMessage() string
- func (x *GetCartTotalResponse) GetTotalPrice() float32
- func (*GetCartTotalResponse) ProtoMessage()
- func (x *GetCartTotalResponse) ProtoReflect() protoreflect.Message
- func (x *GetCartTotalResponse) Reset()
- func (x *GetCartTotalResponse) String() string
- type GetCartsRequest
- func (*GetCartsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCartsRequest) GetFrom() *timestamppb.Timestamp
- func (x *GetCartsRequest) GetTo() *timestamppb.Timestamp
- func (*GetCartsRequest) ProtoMessage()
- func (x *GetCartsRequest) ProtoReflect() protoreflect.Message
- func (x *GetCartsRequest) Reset()
- func (x *GetCartsRequest) String() string
- type GetCartsResponse
- func (*GetCartsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCartsResponse) GetCartId() []string
- func (x *GetCartsResponse) GetMessage() string
- func (*GetCartsResponse) ProtoMessage()
- func (x *GetCartsResponse) ProtoReflect() protoreflect.Message
- func (x *GetCartsResponse) Reset()
- func (x *GetCartsResponse) String() string
- type GetCurrentCartResponse
- func (*GetCurrentCartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCurrentCartResponse) GetMessage() string
- func (x *GetCurrentCartResponse) GetProducts() []*GetProduct
- func (x *GetCurrentCartResponse) GetTotalPrice() float32
- func (*GetCurrentCartResponse) ProtoMessage()
- func (x *GetCurrentCartResponse) ProtoReflect() protoreflect.Message
- func (x *GetCurrentCartResponse) Reset()
- func (x *GetCurrentCartResponse) String() string
- type GetOrder
- func (*GetOrder) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrder) GetOrderDate() *timestamppb.Timestamp
- func (x *GetOrder) GetOrderId() string
- func (x *GetOrder) GetProducts() []*GetProduct
- func (x *GetOrder) GetTotalPrice() string
- func (*GetOrder) ProtoMessage()
- func (x *GetOrder) ProtoReflect() protoreflect.Message
- func (x *GetOrder) Reset()
- func (x *GetOrder) String() string
- type GetOrderRequest
- type GetOrderResponse
- func (*GetOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderResponse) GetMessage() string
- func (x *GetOrderResponse) GetOrder() *GetOrder
- func (*GetOrderResponse) ProtoMessage()
- func (x *GetOrderResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrderResponse) Reset()
- func (x *GetOrderResponse) String() string
- type GetOrdersResponse
- func (*GetOrdersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrdersResponse) GetMessage() string
- func (x *GetOrdersResponse) GetOrdersId() []string
- func (*GetOrdersResponse) ProtoMessage()
- func (x *GetOrdersResponse) ProtoReflect() protoreflect.Message
- func (x *GetOrdersResponse) Reset()
- func (x *GetOrdersResponse) String() string
- type GetProduct
- func (*GetProduct) Descriptor() ([]byte, []int)deprecated
- func (x *GetProduct) GetBranchProductId() string
- func (x *GetProduct) GetDescription() string
- func (x *GetProduct) GetImageId() string
- func (x *GetProduct) GetName() string
- func (x *GetProduct) GetQuantity() int32
- func (x *GetProduct) GetTotalPrice() string
- func (*GetProduct) ProtoMessage()
- func (x *GetProduct) ProtoReflect() protoreflect.Message
- func (x *GetProduct) Reset()
- func (x *GetProduct) String() string
- type OrderClient
- type OrderServer
- type PlaceOrderResponse
- func (*PlaceOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PlaceOrderResponse) GetMessage() string
- func (*PlaceOrderResponse) ProtoMessage()
- func (x *PlaceOrderResponse) ProtoReflect() protoreflect.Message
- func (x *PlaceOrderResponse) Reset()
- func (x *PlaceOrderResponse) String() string
- type RemoveProductFromCartRequest
- func (*RemoveProductFromCartRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveProductFromCartRequest) GetBranchProductId() string
- func (x *RemoveProductFromCartRequest) GetQuantity() int32
- func (*RemoveProductFromCartRequest) ProtoMessage()
- func (x *RemoveProductFromCartRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveProductFromCartRequest) Reset()
- func (x *RemoveProductFromCartRequest) String() string
- type RemoveProductFromCartResponse
- func (*RemoveProductFromCartResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveProductFromCartResponse) GetMessage() string
- func (*RemoveProductFromCartResponse) ProtoMessage()
- func (x *RemoveProductFromCartResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveProductFromCartResponse) Reset()
- func (x *RemoveProductFromCartResponse) String() string
- type UnimplementedOrderServer
- func (UnimplementedOrderServer) AddProductToCart(context.Context, *AddProductToCartRequest) (*AddProductToCartResponse, error)
- func (UnimplementedOrderServer) GetCart(context.Context, *GetCartRequest) (*GetCartResponse, error)
- func (UnimplementedOrderServer) GetCartTotal(context.Context, *GetCartTotalRequest) (*GetCartTotalResponse, error)
- func (UnimplementedOrderServer) GetCarts(context.Context, *GetCartsRequest) (*GetCartsResponse, error)
- func (UnimplementedOrderServer) GetCurrentCart(context.Context, *emptypb.Empty) (*GetCurrentCartResponse, error)
- func (UnimplementedOrderServer) GetOrder(context.Context, *GetOrderRequest) (*GetOrderResponse, error)
- func (UnimplementedOrderServer) GetOrders(context.Context, *emptypb.Empty) (*GetOrdersResponse, error)
- func (UnimplementedOrderServer) PlaceOrder(context.Context, *emptypb.Empty) (*PlaceOrderResponse, error)
- func (UnimplementedOrderServer) RemoveProductFromCart(context.Context, *RemoveProductFromCartRequest) (*RemoveProductFromCartResponse, error)
- type UnsafeOrderServer
Constants ¶
const ( Order_AddProductToCart_FullMethodName = "/pixel_plaza.Order/AddProductToCart" Order_RemoveProductFromCart_FullMethodName = "/pixel_plaza.Order/RemoveProductFromCart" Order_GetCart_FullMethodName = "/pixel_plaza.Order/GetCart" Order_GetCurrentCart_FullMethodName = "/pixel_plaza.Order/GetCurrentCart" Order_GetCarts_FullMethodName = "/pixel_plaza.Order/GetCarts" Order_GetCartTotal_FullMethodName = "/pixel_plaza.Order/GetCartTotal" Order_PlaceOrder_FullMethodName = "/pixel_plaza.Order/PlaceOrder" Order_GetOrders_FullMethodName = "/pixel_plaza.Order/GetOrders" Order_GetOrder_FullMethodName = "/pixel_plaza.Order/GetOrder" )
Variables ¶
var File_proto_pixel_plaza_order_proto protoreflect.FileDescriptor
var Order_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pixel_plaza.Order", HandlerType: (*OrderServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddProductToCart", Handler: _Order_AddProductToCart_Handler, }, { MethodName: "RemoveProductFromCart", Handler: _Order_RemoveProductFromCart_Handler, }, { MethodName: "GetCart", Handler: _Order_GetCart_Handler, }, { MethodName: "GetCurrentCart", Handler: _Order_GetCurrentCart_Handler, }, { MethodName: "GetCarts", Handler: _Order_GetCarts_Handler, }, { MethodName: "GetCartTotal", Handler: _Order_GetCartTotal_Handler, }, { MethodName: "PlaceOrder", Handler: _Order_PlaceOrder_Handler, }, { MethodName: "GetOrders", Handler: _Order_GetOrders_Handler, }, { MethodName: "GetOrder", Handler: _Order_GetOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/pixel_plaza/order.proto", }
Order_ServiceDesc is the grpc.ServiceDesc for Order service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrderServer ¶
func RegisterOrderServer(s grpc.ServiceRegistrar, srv OrderServer)
Types ¶
type AddProductToCartRequest ¶
type AddProductToCartRequest struct { BranchProductId string `protobuf:"bytes,1,opt,name=branch_product_id,json=branchProductId,proto3" json:"branch_product_id,omitempty"` Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
func (*AddProductToCartRequest) Descriptor
deprecated
func (*AddProductToCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddProductToCartRequest.ProtoReflect.Descriptor instead.
func (*AddProductToCartRequest) GetBranchProductId ¶
func (x *AddProductToCartRequest) GetBranchProductId() string
func (*AddProductToCartRequest) GetQuantity ¶
func (x *AddProductToCartRequest) GetQuantity() int32
func (*AddProductToCartRequest) ProtoMessage ¶
func (*AddProductToCartRequest) ProtoMessage()
func (*AddProductToCartRequest) ProtoReflect ¶
func (x *AddProductToCartRequest) ProtoReflect() protoreflect.Message
func (*AddProductToCartRequest) Reset ¶
func (x *AddProductToCartRequest) Reset()
func (*AddProductToCartRequest) String ¶
func (x *AddProductToCartRequest) String() string
type AddProductToCartResponse ¶
type AddProductToCartResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*AddProductToCartResponse) Descriptor
deprecated
func (*AddProductToCartResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddProductToCartResponse.ProtoReflect.Descriptor instead.
func (*AddProductToCartResponse) GetMessage ¶
func (x *AddProductToCartResponse) GetMessage() string
func (*AddProductToCartResponse) ProtoMessage ¶
func (*AddProductToCartResponse) ProtoMessage()
func (*AddProductToCartResponse) ProtoReflect ¶
func (x *AddProductToCartResponse) ProtoReflect() protoreflect.Message
func (*AddProductToCartResponse) Reset ¶
func (x *AddProductToCartResponse) Reset()
func (*AddProductToCartResponse) String ¶
func (x *AddProductToCartResponse) String() string
type GetCartRequest ¶
type GetCartRequest struct { CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` // contains filtered or unexported fields }
func (*GetCartRequest) Descriptor
deprecated
func (*GetCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCartRequest.ProtoReflect.Descriptor instead.
func (*GetCartRequest) GetCartId ¶
func (x *GetCartRequest) GetCartId() string
func (*GetCartRequest) ProtoMessage ¶
func (*GetCartRequest) ProtoMessage()
func (*GetCartRequest) ProtoReflect ¶
func (x *GetCartRequest) ProtoReflect() protoreflect.Message
func (*GetCartRequest) Reset ¶
func (x *GetCartRequest) Reset()
func (*GetCartRequest) String ¶
func (x *GetCartRequest) String() string
type GetCartResponse ¶
type GetCartResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Products []*GetProduct `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"` TotalPrice float32 `protobuf:"fixed32,3,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` // contains filtered or unexported fields }
func (*GetCartResponse) Descriptor
deprecated
func (*GetCartResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCartResponse.ProtoReflect.Descriptor instead.
func (*GetCartResponse) GetMessage ¶
func (x *GetCartResponse) GetMessage() string
func (*GetCartResponse) GetProducts ¶
func (x *GetCartResponse) GetProducts() []*GetProduct
func (*GetCartResponse) GetTotalPrice ¶
func (x *GetCartResponse) GetTotalPrice() float32
func (*GetCartResponse) ProtoMessage ¶
func (*GetCartResponse) ProtoMessage()
func (*GetCartResponse) ProtoReflect ¶
func (x *GetCartResponse) ProtoReflect() protoreflect.Message
func (*GetCartResponse) Reset ¶
func (x *GetCartResponse) Reset()
func (*GetCartResponse) String ¶
func (x *GetCartResponse) String() string
type GetCartTotalRequest ¶
type GetCartTotalRequest struct { CartId string `protobuf:"bytes,1,opt,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` // contains filtered or unexported fields }
func (*GetCartTotalRequest) Descriptor
deprecated
func (*GetCartTotalRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCartTotalRequest.ProtoReflect.Descriptor instead.
func (*GetCartTotalRequest) GetCartId ¶
func (x *GetCartTotalRequest) GetCartId() string
func (*GetCartTotalRequest) ProtoMessage ¶
func (*GetCartTotalRequest) ProtoMessage()
func (*GetCartTotalRequest) ProtoReflect ¶
func (x *GetCartTotalRequest) ProtoReflect() protoreflect.Message
func (*GetCartTotalRequest) Reset ¶
func (x *GetCartTotalRequest) Reset()
func (*GetCartTotalRequest) String ¶
func (x *GetCartTotalRequest) String() string
type GetCartTotalResponse ¶
type GetCartTotalResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` TotalPrice float32 `protobuf:"fixed32,2,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` // contains filtered or unexported fields }
func (*GetCartTotalResponse) Descriptor
deprecated
func (*GetCartTotalResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCartTotalResponse.ProtoReflect.Descriptor instead.
func (*GetCartTotalResponse) GetMessage ¶
func (x *GetCartTotalResponse) GetMessage() string
func (*GetCartTotalResponse) GetTotalPrice ¶
func (x *GetCartTotalResponse) GetTotalPrice() float32
func (*GetCartTotalResponse) ProtoMessage ¶
func (*GetCartTotalResponse) ProtoMessage()
func (*GetCartTotalResponse) ProtoReflect ¶
func (x *GetCartTotalResponse) ProtoReflect() protoreflect.Message
func (*GetCartTotalResponse) Reset ¶
func (x *GetCartTotalResponse) Reset()
func (*GetCartTotalResponse) String ¶
func (x *GetCartTotalResponse) String() string
type GetCartsRequest ¶
type GetCartsRequest struct { From *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=from,proto3,oneof" json:"from,omitempty"` To *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=to,proto3,oneof" json:"to,omitempty"` // contains filtered or unexported fields }
func (*GetCartsRequest) Descriptor
deprecated
func (*GetCartsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCartsRequest.ProtoReflect.Descriptor instead.
func (*GetCartsRequest) GetFrom ¶
func (x *GetCartsRequest) GetFrom() *timestamppb.Timestamp
func (*GetCartsRequest) GetTo ¶
func (x *GetCartsRequest) GetTo() *timestamppb.Timestamp
func (*GetCartsRequest) ProtoMessage ¶
func (*GetCartsRequest) ProtoMessage()
func (*GetCartsRequest) ProtoReflect ¶
func (x *GetCartsRequest) ProtoReflect() protoreflect.Message
func (*GetCartsRequest) Reset ¶
func (x *GetCartsRequest) Reset()
func (*GetCartsRequest) String ¶
func (x *GetCartsRequest) String() string
type GetCartsResponse ¶
type GetCartsResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` CartId []string `protobuf:"bytes,2,rep,name=cart_id,json=cartId,proto3" json:"cart_id,omitempty"` // contains filtered or unexported fields }
func (*GetCartsResponse) Descriptor
deprecated
func (*GetCartsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCartsResponse.ProtoReflect.Descriptor instead.
func (*GetCartsResponse) GetCartId ¶
func (x *GetCartsResponse) GetCartId() []string
func (*GetCartsResponse) GetMessage ¶
func (x *GetCartsResponse) GetMessage() string
func (*GetCartsResponse) ProtoMessage ¶
func (*GetCartsResponse) ProtoMessage()
func (*GetCartsResponse) ProtoReflect ¶
func (x *GetCartsResponse) ProtoReflect() protoreflect.Message
func (*GetCartsResponse) Reset ¶
func (x *GetCartsResponse) Reset()
func (*GetCartsResponse) String ¶
func (x *GetCartsResponse) String() string
type GetCurrentCartResponse ¶
type GetCurrentCartResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Products []*GetProduct `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"` TotalPrice float32 `protobuf:"fixed32,3,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` // contains filtered or unexported fields }
func (*GetCurrentCartResponse) Descriptor
deprecated
func (*GetCurrentCartResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCurrentCartResponse.ProtoReflect.Descriptor instead.
func (*GetCurrentCartResponse) GetMessage ¶
func (x *GetCurrentCartResponse) GetMessage() string
func (*GetCurrentCartResponse) GetProducts ¶
func (x *GetCurrentCartResponse) GetProducts() []*GetProduct
func (*GetCurrentCartResponse) GetTotalPrice ¶
func (x *GetCurrentCartResponse) GetTotalPrice() float32
func (*GetCurrentCartResponse) ProtoMessage ¶
func (*GetCurrentCartResponse) ProtoMessage()
func (*GetCurrentCartResponse) ProtoReflect ¶
func (x *GetCurrentCartResponse) ProtoReflect() protoreflect.Message
func (*GetCurrentCartResponse) Reset ¶
func (x *GetCurrentCartResponse) Reset()
func (*GetCurrentCartResponse) String ¶
func (x *GetCurrentCartResponse) String() string
type GetOrder ¶
type GetOrder struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` Products []*GetProduct `protobuf:"bytes,2,rep,name=products,proto3" json:"products,omitempty"` TotalPrice string `protobuf:"bytes,3,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` OrderDate *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=order_date,json=orderDate,proto3" json:"order_date,omitempty"` // contains filtered or unexported fields }
func (*GetOrder) Descriptor
deprecated
func (*GetOrder) GetOrderDate ¶
func (x *GetOrder) GetOrderDate() *timestamppb.Timestamp
func (*GetOrder) GetOrderId ¶
func (*GetOrder) GetProducts ¶
func (x *GetOrder) GetProducts() []*GetProduct
func (*GetOrder) GetTotalPrice ¶
func (*GetOrder) ProtoMessage ¶
func (*GetOrder) ProtoMessage()
func (*GetOrder) ProtoReflect ¶
func (x *GetOrder) ProtoReflect() protoreflect.Message
type GetOrderRequest ¶
type GetOrderRequest struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // contains filtered or unexported fields }
func (*GetOrderRequest) Descriptor
deprecated
func (*GetOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderRequest.ProtoReflect.Descriptor instead.
func (*GetOrderRequest) GetOrderId ¶
func (x *GetOrderRequest) GetOrderId() string
func (*GetOrderRequest) ProtoMessage ¶
func (*GetOrderRequest) ProtoMessage()
func (*GetOrderRequest) ProtoReflect ¶
func (x *GetOrderRequest) ProtoReflect() protoreflect.Message
func (*GetOrderRequest) Reset ¶
func (x *GetOrderRequest) Reset()
func (*GetOrderRequest) String ¶
func (x *GetOrderRequest) String() string
type GetOrderResponse ¶
type GetOrderResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Order *GetOrder `protobuf:"bytes,2,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func (*GetOrderResponse) Descriptor
deprecated
func (*GetOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderResponse.ProtoReflect.Descriptor instead.
func (*GetOrderResponse) GetMessage ¶
func (x *GetOrderResponse) GetMessage() string
func (*GetOrderResponse) GetOrder ¶
func (x *GetOrderResponse) GetOrder() *GetOrder
func (*GetOrderResponse) ProtoMessage ¶
func (*GetOrderResponse) ProtoMessage()
func (*GetOrderResponse) ProtoReflect ¶
func (x *GetOrderResponse) ProtoReflect() protoreflect.Message
func (*GetOrderResponse) Reset ¶
func (x *GetOrderResponse) Reset()
func (*GetOrderResponse) String ¶
func (x *GetOrderResponse) String() string
type GetOrdersResponse ¶
type GetOrdersResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` OrdersId []string `protobuf:"bytes,2,rep,name=orders_id,json=ordersId,proto3" json:"orders_id,omitempty"` // contains filtered or unexported fields }
func (*GetOrdersResponse) Descriptor
deprecated
func (*GetOrdersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrdersResponse.ProtoReflect.Descriptor instead.
func (*GetOrdersResponse) GetMessage ¶
func (x *GetOrdersResponse) GetMessage() string
func (*GetOrdersResponse) GetOrdersId ¶
func (x *GetOrdersResponse) GetOrdersId() []string
func (*GetOrdersResponse) ProtoMessage ¶
func (*GetOrdersResponse) ProtoMessage()
func (*GetOrdersResponse) ProtoReflect ¶
func (x *GetOrdersResponse) ProtoReflect() protoreflect.Message
func (*GetOrdersResponse) Reset ¶
func (x *GetOrdersResponse) Reset()
func (*GetOrdersResponse) String ¶
func (x *GetOrdersResponse) String() string
type GetProduct ¶
type GetProduct struct { BranchProductId string `protobuf:"bytes,1,opt,name=branch_product_id,json=branchProductId,proto3" json:"branch_product_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Quantity int32 `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"` TotalPrice string `protobuf:"bytes,5,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"` ImageId *string `protobuf:"bytes,6,opt,name=image_id,json=imageId,proto3,oneof" json:"image_id,omitempty"` // contains filtered or unexported fields }
func (*GetProduct) Descriptor
deprecated
func (*GetProduct) Descriptor() ([]byte, []int)
Deprecated: Use GetProduct.ProtoReflect.Descriptor instead.
func (*GetProduct) GetBranchProductId ¶
func (x *GetProduct) GetBranchProductId() string
func (*GetProduct) GetDescription ¶
func (x *GetProduct) GetDescription() string
func (*GetProduct) GetImageId ¶
func (x *GetProduct) GetImageId() string
func (*GetProduct) GetName ¶
func (x *GetProduct) GetName() string
func (*GetProduct) GetQuantity ¶
func (x *GetProduct) GetQuantity() int32
func (*GetProduct) GetTotalPrice ¶
func (x *GetProduct) GetTotalPrice() string
func (*GetProduct) ProtoMessage ¶
func (*GetProduct) ProtoMessage()
func (*GetProduct) ProtoReflect ¶
func (x *GetProduct) ProtoReflect() protoreflect.Message
func (*GetProduct) Reset ¶
func (x *GetProduct) Reset()
func (*GetProduct) String ¶
func (x *GetProduct) String() string
type OrderClient ¶
type OrderClient interface { AddProductToCart(ctx context.Context, in *AddProductToCartRequest, opts ...grpc.CallOption) (*AddProductToCartResponse, error) RemoveProductFromCart(ctx context.Context, in *RemoveProductFromCartRequest, opts ...grpc.CallOption) (*RemoveProductFromCartResponse, error) GetCart(ctx context.Context, in *GetCartRequest, opts ...grpc.CallOption) (*GetCartResponse, error) GetCurrentCart(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetCurrentCartResponse, error) GetCarts(ctx context.Context, in *GetCartsRequest, opts ...grpc.CallOption) (*GetCartsResponse, error) GetCartTotal(ctx context.Context, in *GetCartTotalRequest, opts ...grpc.CallOption) (*GetCartTotalResponse, error) PlaceOrder(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PlaceOrderResponse, error) GetOrders(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetOrdersResponse, error) GetOrder(ctx context.Context, in *GetOrderRequest, opts ...grpc.CallOption) (*GetOrderResponse, error) }
OrderClient is the client API for Order service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewOrderClient ¶
func NewOrderClient(cc grpc.ClientConnInterface) OrderClient
type OrderServer ¶
type OrderServer interface { AddProductToCart(context.Context, *AddProductToCartRequest) (*AddProductToCartResponse, error) RemoveProductFromCart(context.Context, *RemoveProductFromCartRequest) (*RemoveProductFromCartResponse, error) GetCart(context.Context, *GetCartRequest) (*GetCartResponse, error) GetCurrentCart(context.Context, *emptypb.Empty) (*GetCurrentCartResponse, error) GetCarts(context.Context, *GetCartsRequest) (*GetCartsResponse, error) GetCartTotal(context.Context, *GetCartTotalRequest) (*GetCartTotalResponse, error) PlaceOrder(context.Context, *emptypb.Empty) (*PlaceOrderResponse, error) GetOrders(context.Context, *emptypb.Empty) (*GetOrdersResponse, error) GetOrder(context.Context, *GetOrderRequest) (*GetOrderResponse, error) // contains filtered or unexported methods }
OrderServer is the server API for Order service. All implementations must embed UnimplementedOrderServer for forward compatibility.
type PlaceOrderResponse ¶
type PlaceOrderResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PlaceOrderResponse) Descriptor
deprecated
func (*PlaceOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderResponse.ProtoReflect.Descriptor instead.
func (*PlaceOrderResponse) GetMessage ¶
func (x *PlaceOrderResponse) GetMessage() string
func (*PlaceOrderResponse) ProtoMessage ¶
func (*PlaceOrderResponse) ProtoMessage()
func (*PlaceOrderResponse) ProtoReflect ¶
func (x *PlaceOrderResponse) ProtoReflect() protoreflect.Message
func (*PlaceOrderResponse) Reset ¶
func (x *PlaceOrderResponse) Reset()
func (*PlaceOrderResponse) String ¶
func (x *PlaceOrderResponse) String() string
type RemoveProductFromCartRequest ¶
type RemoveProductFromCartRequest struct { BranchProductId string `protobuf:"bytes,1,opt,name=branch_product_id,json=branchProductId,proto3" json:"branch_product_id,omitempty"` Quantity int32 `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"` // contains filtered or unexported fields }
func (*RemoveProductFromCartRequest) Descriptor
deprecated
func (*RemoveProductFromCartRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProductFromCartRequest.ProtoReflect.Descriptor instead.
func (*RemoveProductFromCartRequest) GetBranchProductId ¶
func (x *RemoveProductFromCartRequest) GetBranchProductId() string
func (*RemoveProductFromCartRequest) GetQuantity ¶
func (x *RemoveProductFromCartRequest) GetQuantity() int32
func (*RemoveProductFromCartRequest) ProtoMessage ¶
func (*RemoveProductFromCartRequest) ProtoMessage()
func (*RemoveProductFromCartRequest) ProtoReflect ¶
func (x *RemoveProductFromCartRequest) ProtoReflect() protoreflect.Message
func (*RemoveProductFromCartRequest) Reset ¶
func (x *RemoveProductFromCartRequest) Reset()
func (*RemoveProductFromCartRequest) String ¶
func (x *RemoveProductFromCartRequest) String() string
type RemoveProductFromCartResponse ¶
type RemoveProductFromCartResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*RemoveProductFromCartResponse) Descriptor
deprecated
func (*RemoveProductFromCartResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveProductFromCartResponse.ProtoReflect.Descriptor instead.
func (*RemoveProductFromCartResponse) GetMessage ¶
func (x *RemoveProductFromCartResponse) GetMessage() string
func (*RemoveProductFromCartResponse) ProtoMessage ¶
func (*RemoveProductFromCartResponse) ProtoMessage()
func (*RemoveProductFromCartResponse) ProtoReflect ¶
func (x *RemoveProductFromCartResponse) ProtoReflect() protoreflect.Message
func (*RemoveProductFromCartResponse) Reset ¶
func (x *RemoveProductFromCartResponse) Reset()
func (*RemoveProductFromCartResponse) String ¶
func (x *RemoveProductFromCartResponse) String() string
type UnimplementedOrderServer ¶
type UnimplementedOrderServer struct{}
UnimplementedOrderServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedOrderServer) AddProductToCart ¶
func (UnimplementedOrderServer) AddProductToCart(context.Context, *AddProductToCartRequest) (*AddProductToCartResponse, error)
func (UnimplementedOrderServer) GetCart ¶
func (UnimplementedOrderServer) GetCart(context.Context, *GetCartRequest) (*GetCartResponse, error)
func (UnimplementedOrderServer) GetCartTotal ¶
func (UnimplementedOrderServer) GetCartTotal(context.Context, *GetCartTotalRequest) (*GetCartTotalResponse, error)
func (UnimplementedOrderServer) GetCarts ¶
func (UnimplementedOrderServer) GetCarts(context.Context, *GetCartsRequest) (*GetCartsResponse, error)
func (UnimplementedOrderServer) GetCurrentCart ¶
func (UnimplementedOrderServer) GetCurrentCart(context.Context, *emptypb.Empty) (*GetCurrentCartResponse, error)
func (UnimplementedOrderServer) GetOrder ¶
func (UnimplementedOrderServer) GetOrder(context.Context, *GetOrderRequest) (*GetOrderResponse, error)
func (UnimplementedOrderServer) GetOrders ¶
func (UnimplementedOrderServer) GetOrders(context.Context, *emptypb.Empty) (*GetOrdersResponse, error)
func (UnimplementedOrderServer) PlaceOrder ¶
func (UnimplementedOrderServer) PlaceOrder(context.Context, *emptypb.Empty) (*PlaceOrderResponse, error)
func (UnimplementedOrderServer) RemoveProductFromCart ¶
func (UnimplementedOrderServer) RemoveProductFromCart(context.Context, *RemoveProductFromCartRequest) (*RemoveProductFromCartResponse, error)
type UnsafeOrderServer ¶
type UnsafeOrderServer interface {
// contains filtered or unexported methods
}
UnsafeOrderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServer will result in compilation errors.