Documentation
¶
Index ¶
- Variables
- type Customer
- func (*Customer) Descriptor() ([]byte, []int)
- func (m *Customer) GetBalance() float64
- func (m *Customer) GetCity() string
- func (m *Customer) GetCredit() string
- func (m *Customer) GetCreditLimit() float64
- func (m *Customer) GetData() []byte
- func (m *Customer) GetDeliveryCount() int32
- func (m *Customer) GetDiscount() float64
- func (m *Customer) GetDistrictId() string
- func (m *Customer) GetFirst() string
- func (m *Customer) GetId() string
- func (m *Customer) GetLast() string
- func (m *Customer) GetMiddle() string
- func (m *Customer) GetPaymentCount() int32
- func (m *Customer) GetSince() int32
- func (m *Customer) GetState() string
- func (m *Customer) GetStreet_1() string
- func (m *Customer) GetStreet_2() string
- func (m *Customer) GetWarehouseId() string
- func (m *Customer) GetYearToDatePayment() float64
- func (m *Customer) GetZip() string
- func (m *Customer) Marshal() (dAtA []byte, err error)
- func (m *Customer) MarshalTo(dAtA []byte) (int, error)
- func (*Customer) ProtoMessage()
- func (m *Customer) Reset()
- func (m *Customer) Size() (n int)
- func (m *Customer) String() string
- func (m *Customer) Unmarshal(dAtA []byte) error
- func (m *Customer) XXX_DiscardUnknown()
- func (m *Customer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Customer) XXX_Merge(src proto.Message)
- func (m *Customer) XXX_Size() int
- func (m *Customer) XXX_Unmarshal(b []byte) error
- type District
- func (*District) Descriptor() ([]byte, []int)
- func (m *District) GetCity() string
- func (m *District) GetId() string
- func (m *District) GetName() string
- func (m *District) GetNextOrderId() int32
- func (m *District) GetState() string
- func (m *District) GetStreet_1() string
- func (m *District) GetStreet_2() string
- func (m *District) GetTax() float64
- func (m *District) GetWarehouseId() string
- func (m *District) GetYearToDate() float64
- func (m *District) GetZip() string
- func (m *District) Marshal() (dAtA []byte, err error)
- func (m *District) MarshalTo(dAtA []byte) (int, error)
- func (*District) ProtoMessage()
- func (m *District) Reset()
- func (m *District) Size() (n int)
- func (m *District) String() string
- func (m *District) Unmarshal(dAtA []byte) error
- func (m *District) XXX_DiscardUnknown()
- func (m *District) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *District) XXX_Merge(src proto.Message)
- func (m *District) XXX_Size() int
- func (m *District) XXX_Unmarshal(b []byte) error
- type History
- func (*History) Descriptor() ([]byte, []int)
- func (m *History) GetAmount() float64
- func (m *History) GetCustomerDistrictId() string
- func (m *History) GetCustomerId() string
- func (m *History) GetCustomerWarehouseId() string
- func (m *History) GetData() []byte
- func (m *History) GetDate() float64
- func (m *History) GetDistrictId() string
- func (m *History) GetWarehouseId() string
- func (m *History) Marshal() (dAtA []byte, err error)
- func (m *History) MarshalTo(dAtA []byte) (int, error)
- func (*History) ProtoMessage()
- func (m *History) Reset()
- func (m *History) Size() (n int)
- func (m *History) String() string
- func (m *History) Unmarshal(dAtA []byte) error
- func (m *History) XXX_DiscardUnknown()
- func (m *History) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *History) XXX_Merge(src proto.Message)
- func (m *History) XXX_Size() int
- func (m *History) XXX_Unmarshal(b []byte) error
- type Item
- func (*Item) Descriptor() ([]byte, []int)
- func (m *Item) GetData() []byte
- func (m *Item) GetId() string
- func (m *Item) GetName() string
- func (m *Item) GetPrice() float64
- func (m *Item) Marshal() (dAtA []byte, err error)
- func (m *Item) MarshalTo(dAtA []byte) (int, error)
- func (*Item) ProtoMessage()
- func (m *Item) Reset()
- func (m *Item) Size() (n int)
- func (m *Item) String() string
- func (m *Item) Unmarshal(dAtA []byte) error
- func (m *Item) XXX_DiscardUnknown()
- func (m *Item) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Item) XXX_Merge(src proto.Message)
- func (m *Item) XXX_Size() int
- func (m *Item) XXX_Unmarshal(b []byte) error
- type NewOrder
- func (*NewOrder) Descriptor() ([]byte, []int)
- func (m *NewOrder) GetDistrictId() string
- func (m *NewOrder) GetId() string
- func (m *NewOrder) GetWarehouseId() string
- func (m *NewOrder) Marshal() (dAtA []byte, err error)
- func (m *NewOrder) MarshalTo(dAtA []byte) (int, error)
- func (*NewOrder) ProtoMessage()
- func (m *NewOrder) Reset()
- func (m *NewOrder) Size() (n int)
- func (m *NewOrder) String() string
- func (m *NewOrder) Unmarshal(dAtA []byte) error
- func (m *NewOrder) XXX_DiscardUnknown()
- func (m *NewOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NewOrder) XXX_Merge(src proto.Message)
- func (m *NewOrder) XXX_Size() int
- func (m *NewOrder) XXX_Unmarshal(b []byte) error
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (m *Order) GetAllItemsLocal() bool
- func (m *Order) GetCarrierId() int32
- func (m *Order) GetCustomerId() string
- func (m *Order) GetDistrictId() string
- func (m *Order) GetEntryDate() float64
- func (m *Order) GetId() string
- func (m *Order) GetOrderLineCount() int32
- func (m *Order) GetOrderLinePtr() []uint64
- func (m *Order) GetWarehouseId() string
- func (m *Order) Marshal() (dAtA []byte, err error)
- func (m *Order) MarshalTo(dAtA []byte) (int, error)
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) Size() (n int)
- func (m *Order) String() string
- func (m *Order) Unmarshal(dAtA []byte) error
- func (m *Order) XXX_DiscardUnknown()
- func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Order) XXX_Merge(src proto.Message)
- func (m *Order) XXX_Size() int
- func (m *Order) XXX_Unmarshal(b []byte) error
- type OrderLine
- func (*OrderLine) Descriptor() ([]byte, []int)
- func (m *OrderLine) GetAmount() float64
- func (m *OrderLine) GetDeliveryDate() float64
- func (m *OrderLine) GetDistrictId() string
- func (m *OrderLine) GetDistrictInformation() []byte
- func (m *OrderLine) GetItemId() string
- func (m *OrderLine) GetNumber() int32
- func (m *OrderLine) GetOrderId() string
- func (m *OrderLine) GetQuantity() int32
- func (m *OrderLine) GetSupplyWarehouseId() string
- func (m *OrderLine) GetWarehouseId() string
- func (m *OrderLine) Marshal() (dAtA []byte, err error)
- func (m *OrderLine) MarshalTo(dAtA []byte) (int, error)
- func (*OrderLine) ProtoMessage()
- func (m *OrderLine) Reset()
- func (m *OrderLine) Size() (n int)
- func (m *OrderLine) String() string
- func (m *OrderLine) Unmarshal(dAtA []byte) error
- func (m *OrderLine) XXX_DiscardUnknown()
- func (m *OrderLine) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderLine) XXX_Merge(src proto.Message)
- func (m *OrderLine) XXX_Size() int
- func (m *OrderLine) XXX_Unmarshal(b []byte) error
- type Stock
- func (*Stock) Descriptor() ([]byte, []int)
- func (m *Stock) GetData() []byte
- func (m *Stock) GetDistricts() [][]byte
- func (m *Stock) GetId() string
- func (m *Stock) GetItemId() string
- func (m *Stock) GetOrderCount() int32
- func (m *Stock) GetQuantity() int32
- func (m *Stock) GetRemoteCount() int32
- func (m *Stock) GetWarehouseId() string
- func (m *Stock) GetYearToDate() int32
- func (m *Stock) Marshal() (dAtA []byte, err error)
- func (m *Stock) MarshalTo(dAtA []byte) (int, error)
- func (*Stock) ProtoMessage()
- func (m *Stock) Reset()
- func (m *Stock) Size() (n int)
- func (m *Stock) String() string
- func (m *Stock) Unmarshal(dAtA []byte) error
- func (m *Stock) XXX_DiscardUnknown()
- func (m *Stock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Stock) XXX_Merge(src proto.Message)
- func (m *Stock) XXX_Size() int
- func (m *Stock) XXX_Unmarshal(b []byte) error
- type Warehouse
- func (*Warehouse) Descriptor() ([]byte, []int)
- func (m *Warehouse) GetCity() string
- func (m *Warehouse) GetId() string
- func (m *Warehouse) GetName() string
- func (m *Warehouse) GetState() string
- func (m *Warehouse) GetStreet_1() string
- func (m *Warehouse) GetStreet_2() string
- func (m *Warehouse) GetTax() float64
- func (m *Warehouse) GetYearToDate() float64
- func (m *Warehouse) GetZip() string
- func (m *Warehouse) Marshal() (dAtA []byte, err error)
- func (m *Warehouse) MarshalTo(dAtA []byte) (int, error)
- func (*Warehouse) ProtoMessage()
- func (m *Warehouse) Reset()
- func (m *Warehouse) Size() (n int)
- func (m *Warehouse) String() string
- func (m *Warehouse) Unmarshal(dAtA []byte) error
- func (m *Warehouse) XXX_DiscardUnknown()
- func (m *Warehouse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Warehouse) XXX_Merge(src proto.Message)
- func (m *Warehouse) XXX_Size() int
- func (m *Warehouse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTpcc = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTpcc = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type Customer ¶
type Customer struct { // A customer has one primary key, one parent (foreign) key for the district // it belongs to and one grandparent (foreign) key for the warehouse the // district it is in belongs to Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DistrictId string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` // The following are informational fields for a customer as defined by the // TPC-C standards First string `protobuf:"bytes,10,opt,name=first,proto3" json:"first,omitempty"` Middle string `protobuf:"bytes,11,opt,name=middle,proto3" json:"middle,omitempty"` Last string `protobuf:"bytes,12,opt,name=last,proto3" json:"last,omitempty"` Street_1 string `protobuf:"bytes,13,opt,name=street_1,json=street1,proto3" json:"street_1,omitempty"` Street_2 string `protobuf:"bytes,14,opt,name=street_2,json=street2,proto3" json:"street_2,omitempty"` City string `protobuf:"bytes,15,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,16,opt,name=state,proto3" json:"state,omitempty"` Zip string `protobuf:"bytes,17,opt,name=zip,proto3" json:"zip,omitempty"` // The following are income records as specified in the TPC-C standard Since int32 `protobuf:"varint,20,opt,name=since,proto3" json:"since,omitempty"` Credit string `protobuf:"bytes,21,opt,name=credit,proto3" json:"credit,omitempty"` CreditLimit float64 `protobuf:"fixed64,22,opt,name=credit_limit,json=creditLimit,proto3" json:"credit_limit,omitempty"` Discount float64 `protobuf:"fixed64,23,opt,name=discount,proto3" json:"discount,omitempty"` Balance float64 `protobuf:"fixed64,24,opt,name=balance,proto3" json:"balance,omitempty"` YearToDatePayment float64 `protobuf:"fixed64,25,opt,name=year_to_date_payment,json=yearToDatePayment,proto3" json:"year_to_date_payment,omitempty"` PaymentCount int32 `protobuf:"varint,26,opt,name=payment_count,json=paymentCount,proto3" json:"payment_count,omitempty"` DeliveryCount int32 `protobuf:"varint,27,opt,name=delivery_count,json=deliveryCount,proto3" json:"delivery_count,omitempty"` // The following is an data field for entering miscellany Data []byte `protobuf:"bytes,30,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Customer) Descriptor ¶
func (*Customer) GetBalance ¶
func (*Customer) GetCreditLimit ¶
func (*Customer) GetDeliveryCount ¶
func (*Customer) GetDiscount ¶
func (*Customer) GetDistrictId ¶
func (*Customer) GetPaymentCount ¶
func (*Customer) GetStreet_1 ¶
func (*Customer) GetStreet_2 ¶
func (*Customer) GetWarehouseId ¶
func (*Customer) GetYearToDatePayment ¶
func (*Customer) ProtoMessage ¶
func (*Customer) ProtoMessage()
func (*Customer) XXX_DiscardUnknown ¶
func (m *Customer) XXX_DiscardUnknown()
func (*Customer) XXX_Marshal ¶
func (*Customer) XXX_Unmarshal ¶
type District ¶
type District struct { // A district has one primary key and one parent (foreign) key for the // warehouse it belongs to Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` WarehouseId string `protobuf:"bytes,2,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` // The following are informational fields for a district as defined by the // TPC-C standards Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` Street_1 string `protobuf:"bytes,11,opt,name=street_1,json=street1,proto3" json:"street_1,omitempty"` Street_2 string `protobuf:"bytes,12,opt,name=street_2,json=street2,proto3" json:"street_2,omitempty"` City string `protobuf:"bytes,13,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,14,opt,name=state,proto3" json:"state,omitempty"` Zip string `protobuf:"bytes,15,opt,name=zip,proto3" json:"zip,omitempty"` // The following are income records as specified in the TPC-C standard Tax float64 `protobuf:"fixed64,20,opt,name=tax,proto3" json:"tax,omitempty"` YearToDate float64 `protobuf:"fixed64,21,opt,name=year_to_date,json=yearToDate,proto3" json:"year_to_date,omitempty"` NextOrderId int32 `protobuf:"varint,22,opt,name=next_order_id,json=nextOrderId,proto3" json:"next_order_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*District) Descriptor ¶
func (*District) GetNextOrderId ¶
func (*District) GetStreet_1 ¶
func (*District) GetStreet_2 ¶
func (*District) GetWarehouseId ¶
func (*District) GetYearToDate ¶
func (*District) ProtoMessage ¶
func (*District) ProtoMessage()
func (*District) XXX_DiscardUnknown ¶
func (m *District) XXX_DiscardUnknown()
func (*District) XXX_Marshal ¶
func (*District) XXX_Unmarshal ¶
type History ¶
type History struct { // A history object contains keys for the customer that originated the // item, which district and warehouse it was in, and which district and // warehouse the customer belonged to CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` DistrictId string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` CustomerDistrictId string `protobuf:"bytes,4,opt,name=customer_district_id,json=customerDistrictId,proto3" json:"customer_district_id,omitempty"` CustomerWarehouseId string `protobuf:"bytes,5,opt,name=customer_warehouse_id,json=customerWarehouseId,proto3" json:"customer_warehouse_id,omitempty"` // The following are informational fields for a history as defined by the // TPC-C standards Date float64 `protobuf:"fixed64,10,opt,name=date,proto3" json:"date,omitempty"` Amount float64 `protobuf:"fixed64,11,opt,name=amount,proto3" json:"amount,omitempty"` // The following is an data field for entering miscellany Data []byte `protobuf:"bytes,20,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*History) Descriptor ¶
func (*History) GetCustomerDistrictId ¶
func (*History) GetCustomerId ¶
func (*History) GetCustomerWarehouseId ¶
func (*History) GetDistrictId ¶
func (*History) GetWarehouseId ¶
func (*History) ProtoMessage ¶
func (*History) ProtoMessage()
func (*History) XXX_DiscardUnknown ¶
func (m *History) XXX_DiscardUnknown()
func (*History) XXX_Marshal ¶
func (*History) XXX_Unmarshal ¶
type Item ¶
type Item struct { // An item has only one primary key Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The following are informational fields for an item as defined by the // TPC-C standards Name string `protobuf:"bytes,10,opt,name=name,proto3" json:"name,omitempty"` Price float64 `protobuf:"fixed64,11,opt,name=price,proto3" json:"price,omitempty"` // The following is an data field for entering miscellany Data []byte `protobuf:"bytes,20,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Item) Descriptor ¶
func (*Item) ProtoMessage ¶
func (*Item) ProtoMessage()
func (*Item) XXX_DiscardUnknown ¶
func (m *Item) XXX_DiscardUnknown()
func (*Item) XXX_Unmarshal ¶
type NewOrder ¶
type NewOrder struct { // A new order has one primary key, one parent (foreign) key for the district // it originated in, and one grandparent (foreign) key for the warehouse // the district it originated in belongs to Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DistrictId string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewOrder) Descriptor ¶
func (*NewOrder) GetDistrictId ¶
func (*NewOrder) GetWarehouseId ¶
func (*NewOrder) ProtoMessage ¶
func (*NewOrder) ProtoMessage()
func (*NewOrder) XXX_DiscardUnknown ¶
func (m *NewOrder) XXX_DiscardUnknown()
func (*NewOrder) XXX_Marshal ¶
func (*NewOrder) XXX_Unmarshal ¶
type Order ¶
type Order struct { // An order has one primary key, one parent (foreign) key for the customer // that originated the order, one grandparent (foreign) key for the district // that customer is in, and one grandparent (foreign) key for the district's // warehouse Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` DistrictId string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` CustomerId string `protobuf:"bytes,4,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // The following are informational fields for an order as defined by the // TPC-C standards EntryDate float64 `protobuf:"fixed64,10,opt,name=entry_date,json=entryDate,proto3" json:"entry_date,omitempty"` CarrierId int32 `protobuf:"varint,11,opt,name=carrier_id,json=carrierId,proto3" json:"carrier_id,omitempty"` OrderLineCount int32 `protobuf:"varint,12,opt,name=order_line_count,json=orderLineCount,proto3" json:"order_line_count,omitempty"` AllItemsLocal bool `protobuf:"varint,13,opt,name=all_items_local,json=allItemsLocal,proto3" json:"all_items_local,omitempty"` // Embedding OrderLines into Order (by reference). Kind of hackish. (Alex) OrderLinePtr []uint64 `protobuf:"varint,14,rep,packed,name=order_line_ptr,json=orderLinePtr,proto3" json:"order_line_ptr,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Order) Descriptor ¶
func (*Order) GetAllItemsLocal ¶
func (*Order) GetCarrierId ¶
func (*Order) GetCustomerId ¶
func (*Order) GetDistrictId ¶
func (*Order) GetEntryDate ¶
func (*Order) GetOrderLineCount ¶
func (*Order) GetOrderLinePtr ¶
func (*Order) GetWarehouseId ¶
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) XXX_DiscardUnknown ¶
func (m *Order) XXX_DiscardUnknown()
func (*Order) XXX_Marshal ¶
func (*Order) XXX_Unmarshal ¶
type OrderLine ¶
type OrderLine struct { // An order line has a foreign key for the order it belongs to, the district // the order line occurs in, the warehouse that district belongs to, // which item is being ordered and which supply warehouse it is being // taken from OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` DistrictId string `protobuf:"bytes,2,opt,name=district_id,json=districtId,proto3" json:"district_id,omitempty"` WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` ItemId string `protobuf:"bytes,4,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` SupplyWarehouseId string `protobuf:"bytes,5,opt,name=supply_warehouse_id,json=supplyWarehouseId,proto3" json:"supply_warehouse_id,omitempty"` // The following are informational fields for an orderline as defined by the // TPC-C standards Number int32 `protobuf:"varint,10,opt,name=number,proto3" json:"number,omitempty"` DeliveryDate float64 `protobuf:"fixed64,11,opt,name=delivery_date,json=deliveryDate,proto3" json:"delivery_date,omitempty"` Quantity int32 `protobuf:"varint,12,opt,name=quantity,proto3" json:"quantity,omitempty"` Amount float64 `protobuf:"fixed64,13,opt,name=amount,proto3" json:"amount,omitempty"` DistrictInformation []byte `protobuf:"bytes,14,opt,name=district_information,json=districtInformation,proto3" json:"district_information,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OrderLine) Descriptor ¶
func (*OrderLine) GetDeliveryDate ¶
func (*OrderLine) GetDistrictId ¶
func (*OrderLine) GetDistrictInformation ¶
func (*OrderLine) GetOrderId ¶
func (*OrderLine) GetQuantity ¶
func (*OrderLine) GetSupplyWarehouseId ¶
func (*OrderLine) GetWarehouseId ¶
func (*OrderLine) ProtoMessage ¶
func (*OrderLine) ProtoMessage()
func (*OrderLine) XXX_DiscardUnknown ¶
func (m *OrderLine) XXX_DiscardUnknown()
func (*OrderLine) XXX_Marshal ¶
func (*OrderLine) XXX_Unmarshal ¶
type Stock ¶
type Stock struct { // A stock has one primary key (the item it represents) and one // foreign key (the warehouse it is in) Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ItemId string `protobuf:"bytes,2,opt,name=item_id,json=itemId,proto3" json:"item_id,omitempty"` WarehouseId string `protobuf:"bytes,3,opt,name=warehouse_id,json=warehouseId,proto3" json:"warehouse_id,omitempty"` // The following are informational fields for a stock as defined by the // TPC-C standards Quantity int32 `protobuf:"varint,10,opt,name=quantity,proto3" json:"quantity,omitempty"` Districts [][]byte `protobuf:"bytes,11,rep,name=districts,proto3" json:"districts,omitempty"` YearToDate int32 `protobuf:"varint,12,opt,name=year_to_date,json=yearToDate,proto3" json:"year_to_date,omitempty"` OrderCount int32 `protobuf:"varint,13,opt,name=order_count,json=orderCount,proto3" json:"order_count,omitempty"` RemoteCount int32 `protobuf:"varint,14,opt,name=remote_count,json=remoteCount,proto3" json:"remote_count,omitempty"` // The following is an data field for entering miscellany Data []byte `protobuf:"bytes,20,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Stock) Descriptor ¶
func (*Stock) GetDistricts ¶
func (*Stock) GetOrderCount ¶
func (*Stock) GetQuantity ¶
func (*Stock) GetRemoteCount ¶
func (*Stock) GetWarehouseId ¶
func (*Stock) GetYearToDate ¶
func (*Stock) ProtoMessage ¶
func (*Stock) ProtoMessage()
func (*Stock) XXX_DiscardUnknown ¶
func (m *Stock) XXX_DiscardUnknown()
func (*Stock) XXX_Marshal ¶
func (*Stock) XXX_Unmarshal ¶
type Warehouse ¶
type Warehouse struct { // A warehouse has only one primary key Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The following are informational fields as defined in TPC-C standard Name string `protobuf:"bytes,11,opt,name=name,proto3" json:"name,omitempty"` Street_1 string `protobuf:"bytes,12,opt,name=street_1,json=street1,proto3" json:"street_1,omitempty"` Street_2 string `protobuf:"bytes,13,opt,name=street_2,json=street2,proto3" json:"street_2,omitempty"` City string `protobuf:"bytes,14,opt,name=city,proto3" json:"city,omitempty"` State string `protobuf:"bytes,15,opt,name=state,proto3" json:"state,omitempty"` Zip string `protobuf:"bytes,16,opt,name=zip,proto3" json:"zip,omitempty"` // The following are income records as specified in TPC-C standard Tax float64 `protobuf:"fixed64,20,opt,name=tax,proto3" json:"tax,omitempty"` YearToDate float64 `protobuf:"fixed64,21,opt,name=year_to_date,json=yearToDate,proto3" json:"year_to_date,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Warehouse) Descriptor ¶
func (*Warehouse) GetStreet_1 ¶
func (*Warehouse) GetStreet_2 ¶
func (*Warehouse) GetYearToDate ¶
func (*Warehouse) ProtoMessage ¶
func (*Warehouse) ProtoMessage()
func (*Warehouse) XXX_DiscardUnknown ¶
func (m *Warehouse) XXX_DiscardUnknown()
func (*Warehouse) XXX_Marshal ¶
func (*Warehouse) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.