Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
func (*Order) ToInsertMap ¶
type OrderDetail ¶
type OrderDetail struct { UserID string OrderID string OrderDetailID int64 ItemID string Price int64 Quantity int64 CommitedAt time.Time }
func (*OrderDetail) ToInsertMap ¶
func (od *OrderDetail) ToInsertMap() map[string]interface{}
type OrdersStore ¶
type OrdersStore struct {
// contains filtered or unexported fields
}
func NewOrdersStore ¶
func NewOrdersStore(sc *spanner.Client) (*OrdersStore, error)
func (*OrdersStore) Insert ¶
func (s *OrdersStore) Insert(ctx context.Context, userID string, orderID string, details []*OrderDetail) (time.Time, error)
func (*OrdersStore) OrderDetailsTableName ¶
func (s *OrdersStore) OrderDetailsTableName() string
func (*OrdersStore) OrderTableName ¶
func (s *OrdersStore) OrderTableName() string
Click to show internal directories.
Click to hide internal directories.