Documentation ¶
Index ¶
- Variables
- type Address
- func (*Address) Descriptor() ([]byte, []int)deprecated
- func (x *Address) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Address) FastWrite(buf []byte) (offset int)
- func (x *Address) GetCity() string
- func (x *Address) GetCountry() string
- func (x *Address) GetState() string
- func (x *Address) GetStreetAddress() string
- func (x *Address) GetZipCode() int32
- func (*Address) ProtoMessage()
- func (x *Address) ProtoReflect() protoreflect.Message
- func (x *Address) Reset()
- func (x *Address) Size() (n int)
- func (x *Address) String() string
- type ListOrderReq
- func (*ListOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrderReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListOrderReq) FastWrite(buf []byte) (offset int)
- func (x *ListOrderReq) GetUserId() uint32
- func (*ListOrderReq) ProtoMessage()
- func (x *ListOrderReq) ProtoReflect() protoreflect.Message
- func (x *ListOrderReq) Reset()
- func (x *ListOrderReq) Size() (n int)
- func (x *ListOrderReq) String() string
- type ListOrderResp
- func (*ListOrderResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrderResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListOrderResp) FastWrite(buf []byte) (offset int)
- func (x *ListOrderResp) GetOrders() []*Order
- func (*ListOrderResp) ProtoMessage()
- func (x *ListOrderResp) ProtoReflect() protoreflect.Message
- func (x *ListOrderResp) Reset()
- func (x *ListOrderResp) Size() (n int)
- func (x *ListOrderResp) String() string
- type MarkOrderPaidReq
- func (*MarkOrderPaidReq) Descriptor() ([]byte, []int)deprecated
- func (x *MarkOrderPaidReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MarkOrderPaidReq) FastWrite(buf []byte) (offset int)
- func (x *MarkOrderPaidReq) GetOrderId() string
- func (x *MarkOrderPaidReq) GetUserId() uint32
- func (*MarkOrderPaidReq) ProtoMessage()
- func (x *MarkOrderPaidReq) ProtoReflect() protoreflect.Message
- func (x *MarkOrderPaidReq) Reset()
- func (x *MarkOrderPaidReq) Size() (n int)
- func (x *MarkOrderPaidReq) String() string
- type MarkOrderPaidResp
- func (*MarkOrderPaidResp) Descriptor() ([]byte, []int)deprecated
- func (x *MarkOrderPaidResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *MarkOrderPaidResp) FastWrite(buf []byte) (offset int)
- func (*MarkOrderPaidResp) ProtoMessage()
- func (x *MarkOrderPaidResp) ProtoReflect() protoreflect.Message
- func (x *MarkOrderPaidResp) Reset()
- func (x *MarkOrderPaidResp) Size() (n int)
- func (x *MarkOrderPaidResp) String() string
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *Order) FastWrite(buf []byte) (offset int)
- func (x *Order) GetAddress() *Address
- func (x *Order) GetCreatedAt() int32
- func (x *Order) GetEmail() string
- func (x *Order) GetOrderId() string
- func (x *Order) GetOrderItems() []*OrderItem
- func (x *Order) GetUserCurrency() string
- func (x *Order) GetUserId() uint32
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) Size() (n int)
- func (x *Order) String() string
- type OrderItem
- func (*OrderItem) Descriptor() ([]byte, []int)deprecated
- func (x *OrderItem) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *OrderItem) FastWrite(buf []byte) (offset int)
- func (x *OrderItem) GetCost() float32
- func (x *OrderItem) GetItem() *cart.CartItem
- func (*OrderItem) ProtoMessage()
- func (x *OrderItem) ProtoReflect() protoreflect.Message
- func (x *OrderItem) Reset()
- func (x *OrderItem) Size() (n int)
- func (x *OrderItem) String() string
- type OrderResult
- func (*OrderResult) Descriptor() ([]byte, []int)deprecated
- func (x *OrderResult) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *OrderResult) FastWrite(buf []byte) (offset int)
- func (x *OrderResult) GetOrderId() string
- func (*OrderResult) ProtoMessage()
- func (x *OrderResult) ProtoReflect() protoreflect.Message
- func (x *OrderResult) Reset()
- func (x *OrderResult) Size() (n int)
- func (x *OrderResult) String() string
- type OrderService
- type PlaceOrderReq
- func (*PlaceOrderReq) Descriptor() ([]byte, []int)deprecated
- func (x *PlaceOrderReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *PlaceOrderReq) FastWrite(buf []byte) (offset int)
- func (x *PlaceOrderReq) GetAddress() *Address
- func (x *PlaceOrderReq) GetEmail() string
- func (x *PlaceOrderReq) GetOrderItems() []*OrderItem
- func (x *PlaceOrderReq) GetUserCurrency() string
- func (x *PlaceOrderReq) GetUserId() uint32
- func (*PlaceOrderReq) ProtoMessage()
- func (x *PlaceOrderReq) ProtoReflect() protoreflect.Message
- func (x *PlaceOrderReq) Reset()
- func (x *PlaceOrderReq) Size() (n int)
- func (x *PlaceOrderReq) String() string
- type PlaceOrderResp
- func (*PlaceOrderResp) Descriptor() ([]byte, []int)deprecated
- func (x *PlaceOrderResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *PlaceOrderResp) FastWrite(buf []byte) (offset int)
- func (x *PlaceOrderResp) GetOrder() *OrderResult
- func (*PlaceOrderResp) ProtoMessage()
- func (x *PlaceOrderResp) ProtoReflect() protoreflect.Message
- func (x *PlaceOrderResp) Reset()
- func (x *PlaceOrderResp) Size() (n int)
- func (x *PlaceOrderResp) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_order_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { StreetAddress string `protobuf:"bytes,1,opt,name=street_address,json=streetAddress,proto3" json:"street_address,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` Country string `protobuf:"bytes,4,opt,name=country,proto3" json:"country,omitempty"` ZipCode int32 `protobuf:"varint,5,opt,name=zip_code,json=zipCode,proto3" json:"zip_code,omitempty"` // contains filtered or unexported fields }
func (*Address) Descriptor
deprecated
func (*Address) GetCountry ¶
func (*Address) GetStreetAddress ¶
func (*Address) GetZipCode ¶
func (*Address) ProtoMessage ¶
func (*Address) ProtoMessage()
func (*Address) ProtoReflect ¶
func (x *Address) ProtoReflect() protoreflect.Message
type ListOrderReq ¶
type ListOrderReq struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*ListOrderReq) Descriptor
deprecated
func (*ListOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use ListOrderReq.ProtoReflect.Descriptor instead.
func (*ListOrderReq) FastWrite ¶
func (x *ListOrderReq) FastWrite(buf []byte) (offset int)
func (*ListOrderReq) GetUserId ¶
func (x *ListOrderReq) GetUserId() uint32
func (*ListOrderReq) ProtoMessage ¶
func (*ListOrderReq) ProtoMessage()
func (*ListOrderReq) ProtoReflect ¶
func (x *ListOrderReq) ProtoReflect() protoreflect.Message
func (*ListOrderReq) Reset ¶
func (x *ListOrderReq) Reset()
func (*ListOrderReq) Size ¶
func (x *ListOrderReq) Size() (n int)
func (*ListOrderReq) String ¶
func (x *ListOrderReq) String() string
type ListOrderResp ¶
type ListOrderResp struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
func (*ListOrderResp) Descriptor
deprecated
func (*ListOrderResp) Descriptor() ([]byte, []int)
Deprecated: Use ListOrderResp.ProtoReflect.Descriptor instead.
func (*ListOrderResp) FastWrite ¶
func (x *ListOrderResp) FastWrite(buf []byte) (offset int)
func (*ListOrderResp) GetOrders ¶
func (x *ListOrderResp) GetOrders() []*Order
func (*ListOrderResp) ProtoMessage ¶
func (*ListOrderResp) ProtoMessage()
func (*ListOrderResp) ProtoReflect ¶
func (x *ListOrderResp) ProtoReflect() protoreflect.Message
func (*ListOrderResp) Reset ¶
func (x *ListOrderResp) Reset()
func (*ListOrderResp) Size ¶
func (x *ListOrderResp) Size() (n int)
func (*ListOrderResp) String ¶
func (x *ListOrderResp) String() string
type MarkOrderPaidReq ¶
type MarkOrderPaidReq struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // contains filtered or unexported fields }
func (*MarkOrderPaidReq) Descriptor
deprecated
func (*MarkOrderPaidReq) Descriptor() ([]byte, []int)
Deprecated: Use MarkOrderPaidReq.ProtoReflect.Descriptor instead.
func (*MarkOrderPaidReq) FastWrite ¶
func (x *MarkOrderPaidReq) FastWrite(buf []byte) (offset int)
func (*MarkOrderPaidReq) GetOrderId ¶
func (x *MarkOrderPaidReq) GetOrderId() string
func (*MarkOrderPaidReq) GetUserId ¶
func (x *MarkOrderPaidReq) GetUserId() uint32
func (*MarkOrderPaidReq) ProtoMessage ¶
func (*MarkOrderPaidReq) ProtoMessage()
func (*MarkOrderPaidReq) ProtoReflect ¶
func (x *MarkOrderPaidReq) ProtoReflect() protoreflect.Message
func (*MarkOrderPaidReq) Reset ¶
func (x *MarkOrderPaidReq) Reset()
func (*MarkOrderPaidReq) Size ¶
func (x *MarkOrderPaidReq) Size() (n int)
func (*MarkOrderPaidReq) String ¶
func (x *MarkOrderPaidReq) String() string
type MarkOrderPaidResp ¶
type MarkOrderPaidResp struct {
// contains filtered or unexported fields
}
func (*MarkOrderPaidResp) Descriptor
deprecated
func (*MarkOrderPaidResp) Descriptor() ([]byte, []int)
Deprecated: Use MarkOrderPaidResp.ProtoReflect.Descriptor instead.
func (*MarkOrderPaidResp) FastWrite ¶
func (x *MarkOrderPaidResp) FastWrite(buf []byte) (offset int)
func (*MarkOrderPaidResp) ProtoMessage ¶
func (*MarkOrderPaidResp) ProtoMessage()
func (*MarkOrderPaidResp) ProtoReflect ¶
func (x *MarkOrderPaidResp) ProtoReflect() protoreflect.Message
func (*MarkOrderPaidResp) Reset ¶
func (x *MarkOrderPaidResp) Reset()
func (*MarkOrderPaidResp) Size ¶
func (x *MarkOrderPaidResp) Size() (n int)
func (*MarkOrderPaidResp) String ¶
func (x *MarkOrderPaidResp) String() string
type Order ¶
type Order struct { OrderItems []*OrderItem `protobuf:"bytes,1,rep,name=order_items,json=orderItems,proto3" json:"order_items,omitempty"` OrderId string `protobuf:"bytes,2,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` UserId uint32 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserCurrency string `protobuf:"bytes,4,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"` Address *Address `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` CreatedAt int32 `protobuf:"varint,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetAddress ¶
func (*Order) GetCreatedAt ¶
func (*Order) GetOrderId ¶
func (*Order) GetOrderItems ¶
func (*Order) GetUserCurrency ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderItem ¶
type OrderItem struct { Item *cart.CartItem `protobuf:"bytes,1,opt,name=item,proto3" json:"item,omitempty"` Cost float32 `protobuf:"fixed32,2,opt,name=cost,proto3" json:"cost,omitempty"` // contains filtered or unexported fields }
func (*OrderItem) Descriptor
deprecated
func (*OrderItem) ProtoMessage ¶
func (*OrderItem) ProtoMessage()
func (*OrderItem) ProtoReflect ¶
func (x *OrderItem) ProtoReflect() protoreflect.Message
type OrderResult ¶
type OrderResult struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // contains filtered or unexported fields }
func (*OrderResult) Descriptor
deprecated
func (*OrderResult) Descriptor() ([]byte, []int)
Deprecated: Use OrderResult.ProtoReflect.Descriptor instead.
func (*OrderResult) FastWrite ¶
func (x *OrderResult) FastWrite(buf []byte) (offset int)
func (*OrderResult) GetOrderId ¶
func (x *OrderResult) GetOrderId() string
func (*OrderResult) ProtoMessage ¶
func (*OrderResult) ProtoMessage()
func (*OrderResult) ProtoReflect ¶
func (x *OrderResult) ProtoReflect() protoreflect.Message
func (*OrderResult) Reset ¶
func (x *OrderResult) Reset()
func (*OrderResult) Size ¶
func (x *OrderResult) Size() (n int)
func (*OrderResult) String ¶
func (x *OrderResult) String() string
type OrderService ¶
type OrderService interface { PlaceOrder(ctx context.Context, req *PlaceOrderReq) (res *PlaceOrderResp, err error) ListOrder(ctx context.Context, req *ListOrderReq) (res *ListOrderResp, err error) MarkOrderPaid(ctx context.Context, req *MarkOrderPaidReq) (res *MarkOrderPaidResp, err error) }
type PlaceOrderReq ¶
type PlaceOrderReq struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserCurrency string `protobuf:"bytes,2,opt,name=user_currency,json=userCurrency,proto3" json:"user_currency,omitempty"` Address *Address `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Email string `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"` OrderItems []*OrderItem `protobuf:"bytes,5,rep,name=order_items,json=orderItems,proto3" json:"order_items,omitempty"` // contains filtered or unexported fields }
func (*PlaceOrderReq) Descriptor
deprecated
func (*PlaceOrderReq) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderReq.ProtoReflect.Descriptor instead.
func (*PlaceOrderReq) FastWrite ¶
func (x *PlaceOrderReq) FastWrite(buf []byte) (offset int)
func (*PlaceOrderReq) GetAddress ¶
func (x *PlaceOrderReq) GetAddress() *Address
func (*PlaceOrderReq) GetEmail ¶
func (x *PlaceOrderReq) GetEmail() string
func (*PlaceOrderReq) GetOrderItems ¶
func (x *PlaceOrderReq) GetOrderItems() []*OrderItem
func (*PlaceOrderReq) GetUserCurrency ¶
func (x *PlaceOrderReq) GetUserCurrency() string
func (*PlaceOrderReq) GetUserId ¶
func (x *PlaceOrderReq) GetUserId() uint32
func (*PlaceOrderReq) ProtoMessage ¶
func (*PlaceOrderReq) ProtoMessage()
func (*PlaceOrderReq) ProtoReflect ¶
func (x *PlaceOrderReq) ProtoReflect() protoreflect.Message
func (*PlaceOrderReq) Reset ¶
func (x *PlaceOrderReq) Reset()
func (*PlaceOrderReq) Size ¶
func (x *PlaceOrderReq) Size() (n int)
func (*PlaceOrderReq) String ¶
func (x *PlaceOrderReq) String() string
type PlaceOrderResp ¶
type PlaceOrderResp struct { Order *OrderResult `protobuf:"bytes,1,opt,name=order,proto3" json:"order,omitempty"` // contains filtered or unexported fields }
func (*PlaceOrderResp) Descriptor
deprecated
func (*PlaceOrderResp) Descriptor() ([]byte, []int)
Deprecated: Use PlaceOrderResp.ProtoReflect.Descriptor instead.
func (*PlaceOrderResp) FastWrite ¶
func (x *PlaceOrderResp) FastWrite(buf []byte) (offset int)
func (*PlaceOrderResp) GetOrder ¶
func (x *PlaceOrderResp) GetOrder() *OrderResult
func (*PlaceOrderResp) ProtoMessage ¶
func (*PlaceOrderResp) ProtoMessage()
func (*PlaceOrderResp) ProtoReflect ¶
func (x *PlaceOrderResp) ProtoReflect() protoreflect.Message
func (*PlaceOrderResp) Reset ¶
func (x *PlaceOrderResp) Reset()
func (*PlaceOrderResp) Size ¶
func (x *PlaceOrderResp) Size() (n int)
func (*PlaceOrderResp) String ¶
func (x *PlaceOrderResp) String() string
Click to show internal directories.
Click to hide internal directories.