Documentation ¶
Index ¶
- type DB
- func (d *DB) AreaByID(id int) (stored.Area, error)
- func (d *DB) DebugItemList(id int) ([]stored.OrderedListItem, error)
- func (d *DB) DeleteItem(id int) error
- func (d *DB) DeleteList(id int) error
- func (d *DB) Existing(tx *buntdb.Tx, writable bool) Tx
- func (d *DB) FocusList(user int) ([]stored.Item, error)
- func (d *DB) ForceSetArea(l stored.Area) error
- func (d *DB) ForceSetItem(i stored.Item) error
- func (d *DB) ForceSetList(l stored.List) error
- func (d *DB) ForceSetUser(u stored.User) error
- func (d *DB) ItemByID(id int) (stored.Item, error)
- func (d *DB) ItemList(id int) (stored.List, []stored.Item, error)
- func (d *DB) ListByID(id int) (stored.List, error)
- func (d *DB) NewItem(i stored.Item) (int, error)
- func (d *DB) SetAreaThingPosition(area int, typ stored.ThingType, id, pos int) error
- func (d *DB) SetItem(i stored.Item) error
- func (d *DB) SetList(l stored.List) error
- func (d *DB) SetListItemPosition(list, item, pos int) error
- func (d *DB) SetUserFocus(user, item, focus int) error
- func (d *DB) SortUserFocusAfter(user, id, after int) error
- func (d *DB) Update() (Tx, error)
- func (d *DB) UserArea(user, id int) (stored.Area, []stored.Thing, error)
- func (d *DB) UserByID(id int) (stored.User, error)
- func (d *DB) UserItemByID(user, id int) (stored.Item, error)
- func (d *DB) UserItemList(user, id int) (stored.List, []stored.Item, error)
- func (d *DB) View() (Tx, error)
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) DebugItemList ¶
func (d *DB) DebugItemList(id int) ([]stored.OrderedListItem, error)
func (*DB) DeleteItem ¶
func (*DB) DeleteList ¶
func (*DB) SetAreaThingPosition ¶
func (*DB) SetListItemPosition ¶
func (*DB) SetUserFocus ¶
func (*DB) SortUserFocusAfter ¶
func (*DB) UserItemList ¶
Click to show internal directories.
Click to hide internal directories.