ds

package
v0.0.0-...-2facd03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Client, _ = datastore.NewClient(context.Background(), projectID)

	Kind = map[string]string{
		"Cart":        "Cart",
		"CartItem":    "CartItem",
		"OrderTicket": "OrderTicket",
	}
)

Functions

This section is empty.

Types

type Cart

type Cart struct {
	Cartid string         `datastore:"cartid"`
	Status string         `datastore:"status"` // open, closed, checked-out
	Key    *datastore.Key `datastore:"__key__"`
}

type CartItem

type CartItem struct {
	Itemid string         `datastore:"itemid"`
	Count  int64          `datastore:"count"`
	Key    *datastore.Key `datastore:"__key__"`
}

type OrderTicket

type OrderTicket struct {
	Orderid string         `datastore:"orderid"`
	Cartid  string         `datastore:"cartid"`
	Status  string         `datastore:"status"`
	Key     *datastore.Key `datastore:"__key__"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL