Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LunchDB ¶
type LunchDB interface { AddItem(table Table, item canSetID) error UpdateItem(table Table, item canGetID) error GetItem(table Table, id uint64, result interface{}) error IterateItems(table Table, process func(value []byte) error) error DeleteItem(table Table, id uint64) error Close() }
LunchDB represents a lunchorder database
type LunchOrder ¶
type LunchOrder struct { ID uint64 `json:"id,omitempty"` Date uint32 `json:"d"` MealID uint16 `json:"m"` PersonID uint32 `json:"p"` }
LunchOrder represents a lunch order
type Meal ¶
type Meal struct { ID uint64 `json:"id,omitempty"` Desc string `json:"desc"` Price uint32 `json:"price"` Active bool `json:"active,omitempty"` }
Meal represents a meal that can be ordered
Click to show internal directories.
Click to hide internal directories.