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() string
- 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 ListOrdersReq
- func (*ListOrdersReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrdersReq) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListOrdersReq) FastWrite(buf []byte) (offset int)
- func (x *ListOrdersReq) GetUserId() uint32
- func (*ListOrdersReq) ProtoMessage()
- func (x *ListOrdersReq) ProtoReflect() protoreflect.Message
- func (x *ListOrdersReq) Reset()
- func (x *ListOrdersReq) Size() (n int)
- func (x *ListOrdersReq) String() string
- type ListOrdersResp
- func (*ListOrdersResp) Descriptor() ([]byte, []int)deprecated
- func (x *ListOrdersResp) FastRead(buf []byte, _type int8, number int32) (offset int, err error)
- func (x *ListOrdersResp) FastWrite(buf []byte) (offset int)
- func (x *ListOrdersResp) GetOrders() []*Order
- func (*ListOrdersResp) ProtoMessage()
- func (x *ListOrdersResp) ProtoReflect() protoreflect.Message
- func (x *ListOrdersResp) Reset()
- func (x *ListOrdersResp) Size() (n int)
- func (x *ListOrdersResp) 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) GetItems() []*OrderItem
- func (x *Order) GetOrderId() 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) GetItems() []*OrderItem
- 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_rpc_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 string `protobuf:"bytes,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 ListOrdersReq ¶
type ListOrdersReq struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*ListOrdersReq) Descriptor
deprecated
func (*ListOrdersReq) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersReq.ProtoReflect.Descriptor instead.
func (*ListOrdersReq) FastWrite ¶
func (x *ListOrdersReq) FastWrite(buf []byte) (offset int)
func (*ListOrdersReq) GetUserId ¶
func (x *ListOrdersReq) GetUserId() uint32
func (*ListOrdersReq) ProtoMessage ¶
func (*ListOrdersReq) ProtoMessage()
func (*ListOrdersReq) ProtoReflect ¶
func (x *ListOrdersReq) ProtoReflect() protoreflect.Message
func (*ListOrdersReq) Reset ¶
func (x *ListOrdersReq) Reset()
func (*ListOrdersReq) Size ¶
func (x *ListOrdersReq) Size() (n int)
func (*ListOrdersReq) String ¶
func (x *ListOrdersReq) String() string
type ListOrdersResp ¶
type ListOrdersResp struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
func (*ListOrdersResp) Descriptor
deprecated
func (*ListOrdersResp) Descriptor() ([]byte, []int)
Deprecated: Use ListOrdersResp.ProtoReflect.Descriptor instead.
func (*ListOrdersResp) FastWrite ¶
func (x *ListOrdersResp) FastWrite(buf []byte) (offset int)
func (*ListOrdersResp) GetOrders ¶
func (x *ListOrdersResp) GetOrders() []*Order
func (*ListOrdersResp) ProtoMessage ¶
func (*ListOrdersResp) ProtoMessage()
func (*ListOrdersResp) ProtoReflect ¶
func (x *ListOrdersResp) ProtoReflect() protoreflect.Message
func (*ListOrdersResp) Reset ¶
func (x *ListOrdersResp) Reset()
func (*ListOrdersResp) Size ¶
func (x *ListOrdersResp) Size() (n int)
func (*ListOrdersResp) String ¶
func (x *ListOrdersResp) String() string
type Order ¶
type Order struct { Items []*OrderItem `protobuf:"bytes,1,rep,name=items,proto3" json:"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"` Address *Address `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email,omitempty"` CreatedAt int32 `protobuf:"varint,6,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) 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) ListOrders(ctx context.Context, req *ListOrdersReq) (res *ListOrdersResp, err error) }
type PlaceOrderReq ¶
type PlaceOrderReq struct { UserId uint32 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Address *Address `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Items []*OrderItem `protobuf:"bytes,4,rep,name=items,proto3" json:"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) GetItems ¶
func (x *PlaceOrderReq) GetItems() []*OrderItem
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.