Documentation ¶
Index ¶
- Variables
- func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)
- type CancelOrderReq
- func (*CancelOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *CancelOrderReq) GetAggregateID() string
- func (x *CancelOrderReq) GetCancelReason() string
- func (*CancelOrderReq) ProtoMessage()
- func (x *CancelOrderReq) ProtoReflect() protoreflect.Message
- func (x *CancelOrderReq) Reset()
- func (x *CancelOrderReq) String() string
- type CancelOrderRes
- type ChangeDeliveryAddressReq
- func (*ChangeDeliveryAddressReq) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeDeliveryAddressReq) GetAggregateID() string
- func (x *ChangeDeliveryAddressReq) GetDeliveryAddress() string
- func (*ChangeDeliveryAddressReq) ProtoMessage()
- func (x *ChangeDeliveryAddressReq) ProtoReflect() protoreflect.Message
- func (x *ChangeDeliveryAddressReq) Reset()
- func (x *ChangeDeliveryAddressReq) String() string
- type ChangeDeliveryAddressRes
- type CompleteOrderReq
- func (*CompleteOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *CompleteOrderReq) GetAggregateID() string
- func (x *CompleteOrderReq) GetDeliveryTimestamp() *timestamppb.Timestamp
- func (*CompleteOrderReq) ProtoMessage()
- func (x *CompleteOrderReq) ProtoReflect() protoreflect.Message
- func (x *CompleteOrderReq) Reset()
- func (x *CompleteOrderReq) String() string
- type CompleteOrderRes
- type CreateOrderReq
- func (*CreateOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateOrderReq) GetAccountEmail() string
- func (x *CreateOrderReq) GetDeliveryAddress() string
- func (x *CreateOrderReq) GetShopItems() []*ShopItem
- func (*CreateOrderReq) ProtoMessage()
- func (x *CreateOrderReq) ProtoReflect() protoreflect.Message
- func (x *CreateOrderReq) Reset()
- func (x *CreateOrderReq) String() string
- type CreateOrderRes
- type GetOrderByIDReq
- type GetOrderByIDRes
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetAccountEmail() string
- func (x *Order) GetCancelReason() string
- func (x *Order) GetCanceled() bool
- func (x *Order) GetCompleted() bool
- func (x *Order) GetDeliveryAddress() string
- func (x *Order) GetDeliveryTimestamp() *timestamppb.Timestamp
- func (x *Order) GetID() string
- func (x *Order) GetPaid() bool
- func (x *Order) GetPayment() *Payment
- func (x *Order) GetShopItems() []*ShopItem
- func (x *Order) GetSubmitted() bool
- func (x *Order) GetTotalPrice() float64
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderServiceClient
- type OrderServiceServer
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetHasMore() bool
- func (x *Pagination) GetPage() int64
- func (x *Pagination) GetSize() int64
- func (x *Pagination) GetTotalCount() int64
- func (x *Pagination) GetTotalPages() int64
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- type PayOrderReq
- func (*PayOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *PayOrderReq) GetAggregateID() string
- func (x *PayOrderReq) GetPayment() *Payment
- func (*PayOrderReq) ProtoMessage()
- func (x *PayOrderReq) ProtoReflect() protoreflect.Message
- func (x *PayOrderReq) Reset()
- func (x *PayOrderReq) String() string
- type PayOrderRes
- type Payment
- type SearchReq
- func (*SearchReq) Descriptor() ([]byte, []int)deprecated
- func (x *SearchReq) GetPage() int64
- func (x *SearchReq) GetSearchText() string
- func (x *SearchReq) GetSize() int64
- func (*SearchReq) ProtoMessage()
- func (x *SearchReq) ProtoReflect() protoreflect.Message
- func (x *SearchReq) Reset()
- func (x *SearchReq) String() string
- type SearchRes
- type ShopItem
- func (*ShopItem) Descriptor() ([]byte, []int)deprecated
- func (x *ShopItem) GetDescription() string
- func (x *ShopItem) GetID() string
- func (x *ShopItem) GetPrice() float64
- func (x *ShopItem) GetQuantity() uint64
- func (x *ShopItem) GetTitle() string
- func (*ShopItem) ProtoMessage()
- func (x *ShopItem) ProtoReflect() protoreflect.Message
- func (x *ShopItem) Reset()
- func (x *ShopItem) String() string
- type SubmitOrderReq
- type SubmitOrderRes
- type UnimplementedOrderServiceServer
- func (UnimplementedOrderServiceServer) CancelOrder(context.Context, *CancelOrderReq) (*CancelOrderRes, error)
- func (UnimplementedOrderServiceServer) ChangeDeliveryAddress(context.Context, *ChangeDeliveryAddressReq) (*ChangeDeliveryAddressRes, error)
- func (UnimplementedOrderServiceServer) CompleteOrder(context.Context, *CompleteOrderReq) (*CompleteOrderRes, error)
- func (UnimplementedOrderServiceServer) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderRes, error)
- func (UnimplementedOrderServiceServer) GetOrderByID(context.Context, *GetOrderByIDReq) (*GetOrderByIDRes, error)
- func (UnimplementedOrderServiceServer) PayOrder(context.Context, *PayOrderReq) (*PayOrderRes, error)
- func (UnimplementedOrderServiceServer) Search(context.Context, *SearchReq) (*SearchRes, error)
- func (UnimplementedOrderServiceServer) SubmitOrder(context.Context, *SubmitOrderReq) (*SubmitOrderRes, error)
- func (UnimplementedOrderServiceServer) UpdateShoppingCart(context.Context, *UpdateShoppingCartReq) (*UpdateShoppingCartRes, error)
- type UnsafeOrderServiceServer
- type UpdateShoppingCartReq
- func (*UpdateShoppingCartReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateShoppingCartReq) GetAggregateID() string
- func (x *UpdateShoppingCartReq) GetShopItems() []*ShopItem
- func (*UpdateShoppingCartReq) ProtoMessage()
- func (x *UpdateShoppingCartReq) ProtoReflect() protoreflect.Message
- func (x *UpdateShoppingCartReq) Reset()
- func (x *UpdateShoppingCartReq) String() string
- type UpdateShoppingCartRes
Constants ¶
This section is empty.
Variables ¶
var File_order_proto protoreflect.FileDescriptor
var OrderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "orderService.orderService", HandlerType: (*OrderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrder", Handler: _OrderService_CreateOrder_Handler, }, { MethodName: "PayOrder", Handler: _OrderService_PayOrder_Handler, }, { MethodName: "SubmitOrder", Handler: _OrderService_SubmitOrder_Handler, }, { MethodName: "UpdateShoppingCart", Handler: _OrderService_UpdateShoppingCart_Handler, }, { MethodName: "CancelOrder", Handler: _OrderService_CancelOrder_Handler, }, { MethodName: "CompleteOrder", Handler: _OrderService_CompleteOrder_Handler, }, { MethodName: "ChangeDeliveryAddress", Handler: _OrderService_ChangeDeliveryAddress_Handler, }, { MethodName: "GetOrderByID", Handler: _OrderService_GetOrderByID_Handler, }, { MethodName: "Search", Handler: _OrderService_Search_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "order.proto", }
OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrderServiceServer ¶
func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)
Types ¶
type CancelOrderReq ¶
type CancelOrderReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` CancelReason string `protobuf:"bytes,2,opt,name=CancelReason,proto3" json:"CancelReason,omitempty"` // contains filtered or unexported fields }
func (*CancelOrderReq) Descriptor
deprecated
func (*CancelOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use CancelOrderReq.ProtoReflect.Descriptor instead.
func (*CancelOrderReq) GetAggregateID ¶
func (x *CancelOrderReq) GetAggregateID() string
func (*CancelOrderReq) GetCancelReason ¶
func (x *CancelOrderReq) GetCancelReason() string
func (*CancelOrderReq) ProtoMessage ¶
func (*CancelOrderReq) ProtoMessage()
func (*CancelOrderReq) ProtoReflect ¶
func (x *CancelOrderReq) ProtoReflect() protoreflect.Message
func (*CancelOrderReq) Reset ¶
func (x *CancelOrderReq) Reset()
func (*CancelOrderReq) String ¶
func (x *CancelOrderReq) String() string
type CancelOrderRes ¶
type CancelOrderRes struct {
// contains filtered or unexported fields
}
func (*CancelOrderRes) Descriptor
deprecated
func (*CancelOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use CancelOrderRes.ProtoReflect.Descriptor instead.
func (*CancelOrderRes) ProtoMessage ¶
func (*CancelOrderRes) ProtoMessage()
func (*CancelOrderRes) ProtoReflect ¶
func (x *CancelOrderRes) ProtoReflect() protoreflect.Message
func (*CancelOrderRes) Reset ¶
func (x *CancelOrderRes) Reset()
func (*CancelOrderRes) String ¶
func (x *CancelOrderRes) String() string
type ChangeDeliveryAddressReq ¶
type ChangeDeliveryAddressReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` DeliveryAddress string `protobuf:"bytes,2,opt,name=DeliveryAddress,proto3" json:"DeliveryAddress,omitempty"` // contains filtered or unexported fields }
func (*ChangeDeliveryAddressReq) Descriptor
deprecated
func (*ChangeDeliveryAddressReq) Descriptor() ([]byte, []int)
Deprecated: Use ChangeDeliveryAddressReq.ProtoReflect.Descriptor instead.
func (*ChangeDeliveryAddressReq) GetAggregateID ¶
func (x *ChangeDeliveryAddressReq) GetAggregateID() string
func (*ChangeDeliveryAddressReq) GetDeliveryAddress ¶
func (x *ChangeDeliveryAddressReq) GetDeliveryAddress() string
func (*ChangeDeliveryAddressReq) ProtoMessage ¶
func (*ChangeDeliveryAddressReq) ProtoMessage()
func (*ChangeDeliveryAddressReq) ProtoReflect ¶
func (x *ChangeDeliveryAddressReq) ProtoReflect() protoreflect.Message
func (*ChangeDeliveryAddressReq) Reset ¶
func (x *ChangeDeliveryAddressReq) Reset()
func (*ChangeDeliveryAddressReq) String ¶
func (x *ChangeDeliveryAddressReq) String() string
type ChangeDeliveryAddressRes ¶
type ChangeDeliveryAddressRes struct {
// contains filtered or unexported fields
}
func (*ChangeDeliveryAddressRes) Descriptor
deprecated
func (*ChangeDeliveryAddressRes) Descriptor() ([]byte, []int)
Deprecated: Use ChangeDeliveryAddressRes.ProtoReflect.Descriptor instead.
func (*ChangeDeliveryAddressRes) ProtoMessage ¶
func (*ChangeDeliveryAddressRes) ProtoMessage()
func (*ChangeDeliveryAddressRes) ProtoReflect ¶
func (x *ChangeDeliveryAddressRes) ProtoReflect() protoreflect.Message
func (*ChangeDeliveryAddressRes) Reset ¶
func (x *ChangeDeliveryAddressRes) Reset()
func (*ChangeDeliveryAddressRes) String ¶
func (x *ChangeDeliveryAddressRes) String() string
type CompleteOrderReq ¶
type CompleteOrderReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` DeliveryTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=DeliveryTimestamp,proto3" json:"DeliveryTimestamp,omitempty"` // contains filtered or unexported fields }
func (*CompleteOrderReq) Descriptor
deprecated
func (*CompleteOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use CompleteOrderReq.ProtoReflect.Descriptor instead.
func (*CompleteOrderReq) GetAggregateID ¶
func (x *CompleteOrderReq) GetAggregateID() string
func (*CompleteOrderReq) GetDeliveryTimestamp ¶
func (x *CompleteOrderReq) GetDeliveryTimestamp() *timestamppb.Timestamp
func (*CompleteOrderReq) ProtoMessage ¶
func (*CompleteOrderReq) ProtoMessage()
func (*CompleteOrderReq) ProtoReflect ¶
func (x *CompleteOrderReq) ProtoReflect() protoreflect.Message
func (*CompleteOrderReq) Reset ¶
func (x *CompleteOrderReq) Reset()
func (*CompleteOrderReq) String ¶
func (x *CompleteOrderReq) String() string
type CompleteOrderRes ¶
type CompleteOrderRes struct {
// contains filtered or unexported fields
}
func (*CompleteOrderRes) Descriptor
deprecated
func (*CompleteOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use CompleteOrderRes.ProtoReflect.Descriptor instead.
func (*CompleteOrderRes) ProtoMessage ¶
func (*CompleteOrderRes) ProtoMessage()
func (*CompleteOrderRes) ProtoReflect ¶
func (x *CompleteOrderRes) ProtoReflect() protoreflect.Message
func (*CompleteOrderRes) Reset ¶
func (x *CompleteOrderRes) Reset()
func (*CompleteOrderRes) String ¶
func (x *CompleteOrderRes) String() string
type CreateOrderReq ¶
type CreateOrderReq struct { AccountEmail string `protobuf:"bytes,1,opt,name=AccountEmail,proto3" json:"AccountEmail,omitempty"` ShopItems []*ShopItem `protobuf:"bytes,2,rep,name=ShopItems,proto3" json:"ShopItems,omitempty"` DeliveryAddress string `protobuf:"bytes,3,opt,name=DeliveryAddress,proto3" json:"DeliveryAddress,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderReq) Descriptor
deprecated
func (*CreateOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderReq.ProtoReflect.Descriptor instead.
func (*CreateOrderReq) GetAccountEmail ¶
func (x *CreateOrderReq) GetAccountEmail() string
func (*CreateOrderReq) GetDeliveryAddress ¶
func (x *CreateOrderReq) GetDeliveryAddress() string
func (*CreateOrderReq) GetShopItems ¶
func (x *CreateOrderReq) GetShopItems() []*ShopItem
func (*CreateOrderReq) ProtoMessage ¶
func (*CreateOrderReq) ProtoMessage()
func (*CreateOrderReq) ProtoReflect ¶
func (x *CreateOrderReq) ProtoReflect() protoreflect.Message
func (*CreateOrderReq) Reset ¶
func (x *CreateOrderReq) Reset()
func (*CreateOrderReq) String ¶
func (x *CreateOrderReq) String() string
type CreateOrderRes ¶
type CreateOrderRes struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` // contains filtered or unexported fields }
func (*CreateOrderRes) Descriptor
deprecated
func (*CreateOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use CreateOrderRes.ProtoReflect.Descriptor instead.
func (*CreateOrderRes) GetAggregateID ¶
func (x *CreateOrderRes) GetAggregateID() string
func (*CreateOrderRes) ProtoMessage ¶
func (*CreateOrderRes) ProtoMessage()
func (*CreateOrderRes) ProtoReflect ¶
func (x *CreateOrderRes) ProtoReflect() protoreflect.Message
func (*CreateOrderRes) Reset ¶
func (x *CreateOrderRes) Reset()
func (*CreateOrderRes) String ¶
func (x *CreateOrderRes) String() string
type GetOrderByIDReq ¶
type GetOrderByIDReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` // contains filtered or unexported fields }
func (*GetOrderByIDReq) Descriptor
deprecated
func (*GetOrderByIDReq) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderByIDReq.ProtoReflect.Descriptor instead.
func (*GetOrderByIDReq) GetAggregateID ¶
func (x *GetOrderByIDReq) GetAggregateID() string
func (*GetOrderByIDReq) ProtoMessage ¶
func (*GetOrderByIDReq) ProtoMessage()
func (*GetOrderByIDReq) ProtoReflect ¶
func (x *GetOrderByIDReq) ProtoReflect() protoreflect.Message
func (*GetOrderByIDReq) Reset ¶
func (x *GetOrderByIDReq) Reset()
func (*GetOrderByIDReq) String ¶
func (x *GetOrderByIDReq) String() string
type GetOrderByIDRes ¶
type GetOrderByIDRes struct { Order *Order `protobuf:"bytes,1,opt,name=Order,proto3" json:"Order,omitempty"` // contains filtered or unexported fields }
func (*GetOrderByIDRes) Descriptor
deprecated
func (*GetOrderByIDRes) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderByIDRes.ProtoReflect.Descriptor instead.
func (*GetOrderByIDRes) GetOrder ¶
func (x *GetOrderByIDRes) GetOrder() *Order
func (*GetOrderByIDRes) ProtoMessage ¶
func (*GetOrderByIDRes) ProtoMessage()
func (*GetOrderByIDRes) ProtoReflect ¶
func (x *GetOrderByIDRes) ProtoReflect() protoreflect.Message
func (*GetOrderByIDRes) Reset ¶
func (x *GetOrderByIDRes) Reset()
func (*GetOrderByIDRes) String ¶
func (x *GetOrderByIDRes) String() string
type Order ¶
type Order struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` ShopItems []*ShopItem `protobuf:"bytes,2,rep,name=ShopItems,proto3" json:"ShopItems,omitempty"` Paid bool `protobuf:"varint,3,opt,name=Paid,proto3" json:"Paid,omitempty"` Submitted bool `protobuf:"varint,4,opt,name=Submitted,proto3" json:"Submitted,omitempty"` Completed bool `protobuf:"varint,5,opt,name=Completed,proto3" json:"Completed,omitempty"` Canceled bool `protobuf:"varint,6,opt,name=Canceled,proto3" json:"Canceled,omitempty"` TotalPrice float64 `protobuf:"fixed64,7,opt,name=TotalPrice,proto3" json:"TotalPrice,omitempty"` AccountEmail string `protobuf:"bytes,8,opt,name=AccountEmail,proto3" json:"AccountEmail,omitempty"` CancelReason string `protobuf:"bytes,9,opt,name=CancelReason,proto3" json:"CancelReason,omitempty"` DeliveryAddress string `protobuf:"bytes,10,opt,name=DeliveryAddress,proto3" json:"DeliveryAddress,omitempty"` DeliveryTimestamp *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=DeliveryTimestamp,proto3" json:"DeliveryTimestamp,omitempty"` Payment *Payment `protobuf:"bytes,12,opt,name=Payment,proto3" json:"Payment,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetAccountEmail ¶
func (*Order) GetCancelReason ¶
func (*Order) GetCanceled ¶
func (*Order) GetCompleted ¶
func (*Order) GetDeliveryAddress ¶
func (*Order) GetDeliveryTimestamp ¶
func (x *Order) GetDeliveryTimestamp() *timestamppb.Timestamp
func (*Order) GetPayment ¶
func (*Order) GetShopItems ¶
func (*Order) GetSubmitted ¶
func (*Order) GetTotalPrice ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderServiceClient ¶
type OrderServiceClient interface { CreateOrder(ctx context.Context, in *CreateOrderReq, opts ...grpc.CallOption) (*CreateOrderRes, error) PayOrder(ctx context.Context, in *PayOrderReq, opts ...grpc.CallOption) (*PayOrderRes, error) SubmitOrder(ctx context.Context, in *SubmitOrderReq, opts ...grpc.CallOption) (*SubmitOrderRes, error) UpdateShoppingCart(ctx context.Context, in *UpdateShoppingCartReq, opts ...grpc.CallOption) (*UpdateShoppingCartRes, error) CancelOrder(ctx context.Context, in *CancelOrderReq, opts ...grpc.CallOption) (*CancelOrderRes, error) CompleteOrder(ctx context.Context, in *CompleteOrderReq, opts ...grpc.CallOption) (*CompleteOrderRes, error) ChangeDeliveryAddress(ctx context.Context, in *ChangeDeliveryAddressReq, opts ...grpc.CallOption) (*ChangeDeliveryAddressRes, error) GetOrderByID(ctx context.Context, in *GetOrderByIDReq, opts ...grpc.CallOption) (*GetOrderByIDRes, error) Search(ctx context.Context, in *SearchReq, opts ...grpc.CallOption) (*SearchRes, error) }
OrderServiceClient is the client API for OrderService 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 NewOrderServiceClient ¶
func NewOrderServiceClient(cc grpc.ClientConnInterface) OrderServiceClient
type OrderServiceServer ¶
type OrderServiceServer interface { CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderRes, error) PayOrder(context.Context, *PayOrderReq) (*PayOrderRes, error) SubmitOrder(context.Context, *SubmitOrderReq) (*SubmitOrderRes, error) UpdateShoppingCart(context.Context, *UpdateShoppingCartReq) (*UpdateShoppingCartRes, error) CancelOrder(context.Context, *CancelOrderReq) (*CancelOrderRes, error) CompleteOrder(context.Context, *CompleteOrderReq) (*CompleteOrderRes, error) ChangeDeliveryAddress(context.Context, *ChangeDeliveryAddressReq) (*ChangeDeliveryAddressRes, error) GetOrderByID(context.Context, *GetOrderByIDReq) (*GetOrderByIDRes, error) Search(context.Context, *SearchReq) (*SearchRes, error) }
OrderServiceServer is the server API for OrderService service. All implementations should embed UnimplementedOrderServiceServer for forward compatibility
type Pagination ¶
type Pagination struct { TotalCount int64 `protobuf:"varint,1,opt,name=TotalCount,proto3" json:"TotalCount,omitempty"` TotalPages int64 `protobuf:"varint,2,opt,name=TotalPages,proto3" json:"TotalPages,omitempty"` Page int64 `protobuf:"varint,3,opt,name=Page,proto3" json:"Page,omitempty"` Size int64 `protobuf:"varint,4,opt,name=Size,proto3" json:"Size,omitempty"` HasMore bool `protobuf:"varint,5,opt,name=HasMore,proto3" json:"HasMore,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetHasMore ¶
func (x *Pagination) GetHasMore() bool
func (*Pagination) GetPage ¶
func (x *Pagination) GetPage() int64
func (*Pagination) GetSize ¶
func (x *Pagination) GetSize() int64
func (*Pagination) GetTotalCount ¶
func (x *Pagination) GetTotalCount() int64
func (*Pagination) GetTotalPages ¶
func (x *Pagination) GetTotalPages() int64
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type PayOrderReq ¶
type PayOrderReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` Payment *Payment `protobuf:"bytes,2,opt,name=Payment,proto3" json:"Payment,omitempty"` // contains filtered or unexported fields }
func (*PayOrderReq) Descriptor
deprecated
func (*PayOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use PayOrderReq.ProtoReflect.Descriptor instead.
func (*PayOrderReq) GetAggregateID ¶
func (x *PayOrderReq) GetAggregateID() string
func (*PayOrderReq) GetPayment ¶
func (x *PayOrderReq) GetPayment() *Payment
func (*PayOrderReq) ProtoMessage ¶
func (*PayOrderReq) ProtoMessage()
func (*PayOrderReq) ProtoReflect ¶
func (x *PayOrderReq) ProtoReflect() protoreflect.Message
func (*PayOrderReq) Reset ¶
func (x *PayOrderReq) Reset()
func (*PayOrderReq) String ¶
func (x *PayOrderReq) String() string
type PayOrderRes ¶
type PayOrderRes struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` // contains filtered or unexported fields }
func (*PayOrderRes) Descriptor
deprecated
func (*PayOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use PayOrderRes.ProtoReflect.Descriptor instead.
func (*PayOrderRes) GetAggregateID ¶
func (x *PayOrderRes) GetAggregateID() string
func (*PayOrderRes) ProtoMessage ¶
func (*PayOrderRes) ProtoMessage()
func (*PayOrderRes) ProtoReflect ¶
func (x *PayOrderRes) ProtoReflect() protoreflect.Message
func (*PayOrderRes) Reset ¶
func (x *PayOrderRes) Reset()
func (*PayOrderRes) String ¶
func (x *PayOrderRes) String() string
type Payment ¶
type Payment struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=Timestamp,proto3" json:"Timestamp,omitempty"` // contains filtered or unexported fields }
func (*Payment) Descriptor
deprecated
func (*Payment) GetTimestamp ¶
func (x *Payment) GetTimestamp() *timestamppb.Timestamp
func (*Payment) ProtoMessage ¶
func (*Payment) ProtoMessage()
func (*Payment) ProtoReflect ¶
func (x *Payment) ProtoReflect() protoreflect.Message
type SearchReq ¶
type SearchReq struct { SearchText string `protobuf:"bytes,1,opt,name=SearchText,proto3" json:"SearchText,omitempty"` Page int64 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"` Size int64 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"` // contains filtered or unexported fields }
func (*SearchReq) Descriptor
deprecated
func (*SearchReq) GetSearchText ¶
func (*SearchReq) ProtoMessage ¶
func (*SearchReq) ProtoMessage()
func (*SearchReq) ProtoReflect ¶
func (x *SearchReq) ProtoReflect() protoreflect.Message
type SearchRes ¶
type SearchRes struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=Pagination,proto3" json:"Pagination,omitempty"` Orders []*Order `protobuf:"bytes,2,rep,name=Orders,proto3" json:"Orders,omitempty"` // contains filtered or unexported fields }
func (*SearchRes) Descriptor
deprecated
func (*SearchRes) GetPagination ¶
func (x *SearchRes) GetPagination() *Pagination
func (*SearchRes) ProtoMessage ¶
func (*SearchRes) ProtoMessage()
func (*SearchRes) ProtoReflect ¶
func (x *SearchRes) ProtoReflect() protoreflect.Message
type ShopItem ¶
type ShopItem struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Title string `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"` Description string `protobuf:"bytes,3,opt,name=Description,proto3" json:"Description,omitempty"` Quantity uint64 `protobuf:"varint,4,opt,name=Quantity,proto3" json:"Quantity,omitempty"` Price float64 `protobuf:"fixed64,5,opt,name=Price,proto3" json:"Price,omitempty"` // contains filtered or unexported fields }
func (*ShopItem) Descriptor
deprecated
func (*ShopItem) GetDescription ¶
func (*ShopItem) GetQuantity ¶
func (*ShopItem) ProtoMessage ¶
func (*ShopItem) ProtoMessage()
func (*ShopItem) ProtoReflect ¶
func (x *ShopItem) ProtoReflect() protoreflect.Message
type SubmitOrderReq ¶
type SubmitOrderReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` // contains filtered or unexported fields }
func (*SubmitOrderReq) Descriptor
deprecated
func (*SubmitOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use SubmitOrderReq.ProtoReflect.Descriptor instead.
func (*SubmitOrderReq) GetAggregateID ¶
func (x *SubmitOrderReq) GetAggregateID() string
func (*SubmitOrderReq) ProtoMessage ¶
func (*SubmitOrderReq) ProtoMessage()
func (*SubmitOrderReq) ProtoReflect ¶
func (x *SubmitOrderReq) ProtoReflect() protoreflect.Message
func (*SubmitOrderReq) Reset ¶
func (x *SubmitOrderReq) Reset()
func (*SubmitOrderReq) String ¶
func (x *SubmitOrderReq) String() string
type SubmitOrderRes ¶
type SubmitOrderRes struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` // contains filtered or unexported fields }
func (*SubmitOrderRes) Descriptor
deprecated
func (*SubmitOrderRes) Descriptor() ([]byte, []int)
Deprecated: Use SubmitOrderRes.ProtoReflect.Descriptor instead.
func (*SubmitOrderRes) GetAggregateID ¶
func (x *SubmitOrderRes) GetAggregateID() string
func (*SubmitOrderRes) ProtoMessage ¶
func (*SubmitOrderRes) ProtoMessage()
func (*SubmitOrderRes) ProtoReflect ¶
func (x *SubmitOrderRes) ProtoReflect() protoreflect.Message
func (*SubmitOrderRes) Reset ¶
func (x *SubmitOrderRes) Reset()
func (*SubmitOrderRes) String ¶
func (x *SubmitOrderRes) String() string
type UnimplementedOrderServiceServer ¶
type UnimplementedOrderServiceServer struct { }
UnimplementedOrderServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedOrderServiceServer) CancelOrder ¶
func (UnimplementedOrderServiceServer) CancelOrder(context.Context, *CancelOrderReq) (*CancelOrderRes, error)
func (UnimplementedOrderServiceServer) ChangeDeliveryAddress ¶
func (UnimplementedOrderServiceServer) ChangeDeliveryAddress(context.Context, *ChangeDeliveryAddressReq) (*ChangeDeliveryAddressRes, error)
func (UnimplementedOrderServiceServer) CompleteOrder ¶
func (UnimplementedOrderServiceServer) CompleteOrder(context.Context, *CompleteOrderReq) (*CompleteOrderRes, error)
func (UnimplementedOrderServiceServer) CreateOrder ¶
func (UnimplementedOrderServiceServer) CreateOrder(context.Context, *CreateOrderReq) (*CreateOrderRes, error)
func (UnimplementedOrderServiceServer) GetOrderByID ¶
func (UnimplementedOrderServiceServer) GetOrderByID(context.Context, *GetOrderByIDReq) (*GetOrderByIDRes, error)
func (UnimplementedOrderServiceServer) PayOrder ¶
func (UnimplementedOrderServiceServer) PayOrder(context.Context, *PayOrderReq) (*PayOrderRes, error)
func (UnimplementedOrderServiceServer) SubmitOrder ¶
func (UnimplementedOrderServiceServer) SubmitOrder(context.Context, *SubmitOrderReq) (*SubmitOrderRes, error)
func (UnimplementedOrderServiceServer) UpdateShoppingCart ¶
func (UnimplementedOrderServiceServer) UpdateShoppingCart(context.Context, *UpdateShoppingCartReq) (*UpdateShoppingCartRes, error)
type UnsafeOrderServiceServer ¶
type UnsafeOrderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServiceServer will result in compilation errors.
type UpdateShoppingCartReq ¶
type UpdateShoppingCartReq struct { AggregateID string `protobuf:"bytes,1,opt,name=AggregateID,proto3" json:"AggregateID,omitempty"` ShopItems []*ShopItem `protobuf:"bytes,2,rep,name=ShopItems,proto3" json:"ShopItems,omitempty"` // contains filtered or unexported fields }
func (*UpdateShoppingCartReq) Descriptor
deprecated
func (*UpdateShoppingCartReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShoppingCartReq.ProtoReflect.Descriptor instead.
func (*UpdateShoppingCartReq) GetAggregateID ¶
func (x *UpdateShoppingCartReq) GetAggregateID() string
func (*UpdateShoppingCartReq) GetShopItems ¶
func (x *UpdateShoppingCartReq) GetShopItems() []*ShopItem
func (*UpdateShoppingCartReq) ProtoMessage ¶
func (*UpdateShoppingCartReq) ProtoMessage()
func (*UpdateShoppingCartReq) ProtoReflect ¶
func (x *UpdateShoppingCartReq) ProtoReflect() protoreflect.Message
func (*UpdateShoppingCartReq) Reset ¶
func (x *UpdateShoppingCartReq) Reset()
func (*UpdateShoppingCartReq) String ¶
func (x *UpdateShoppingCartReq) String() string
type UpdateShoppingCartRes ¶
type UpdateShoppingCartRes struct {
// contains filtered or unexported fields
}
func (*UpdateShoppingCartRes) Descriptor
deprecated
func (*UpdateShoppingCartRes) Descriptor() ([]byte, []int)
Deprecated: Use UpdateShoppingCartRes.ProtoReflect.Descriptor instead.
func (*UpdateShoppingCartRes) ProtoMessage ¶
func (*UpdateShoppingCartRes) ProtoMessage()
func (*UpdateShoppingCartRes) ProtoReflect ¶
func (x *UpdateShoppingCartRes) ProtoReflect() protoreflect.Message
func (*UpdateShoppingCartRes) Reset ¶
func (x *UpdateShoppingCartRes) Reset()
func (*UpdateShoppingCartRes) String ¶
func (x *UpdateShoppingCartRes) String() string