memory

package
v0.0.0-...-68f52cc Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 Open

func Open() *DB

func (*DB) AreaByID

func (d *DB) AreaByID(id int) (stored.Area, error)

func (*DB) DebugItemList

func (d *DB) DebugItemList(id int) ([]stored.OrderedListItem, error)

func (*DB) DeleteItem

func (d *DB) DeleteItem(id int) error

func (*DB) DeleteList

func (d *DB) DeleteList(id int) error

func (*DB) Existing

func (d *DB) Existing(tx *buntdb.Tx, writable bool) Tx

func (*DB) FocusList

func (d *DB) FocusList(user int) ([]stored.Item, error)

func (*DB) ForceSetArea

func (d *DB) ForceSetArea(l stored.Area) error

func (*DB) ForceSetItem

func (d *DB) ForceSetItem(i stored.Item) error

func (*DB) ForceSetList

func (d *DB) ForceSetList(l stored.List) error

func (*DB) ForceSetUser

func (d *DB) ForceSetUser(u stored.User) error

func (*DB) ItemByID

func (d *DB) ItemByID(id int) (stored.Item, error)

func (*DB) ItemList

func (d *DB) ItemList(id int) (stored.List, []stored.Item, error)

func (*DB) ListByID

func (d *DB) ListByID(id int) (stored.List, error)

func (*DB) NewItem

func (d *DB) NewItem(i stored.Item) (int, error)

func (*DB) SetAreaThingPosition

func (d *DB) SetAreaThingPosition(area int, typ stored.ThingType, id, pos int) error

func (*DB) SetItem

func (d *DB) SetItem(i stored.Item) error

func (*DB) SetList

func (d *DB) SetList(l stored.List) error

func (*DB) SetListItemPosition

func (d *DB) SetListItemPosition(list, item, pos int) error

func (*DB) SetUserFocus

func (d *DB) SetUserFocus(user, item, focus int) error

func (*DB) SortUserFocusAfter

func (d *DB) SortUserFocusAfter(user, id, after int) error

func (*DB) Update

func (d *DB) Update() (Tx, error)

func (*DB) UserArea

func (d *DB) UserArea(user, id int) (stored.Area, []stored.Thing, error)

func (*DB) UserByID

func (d *DB) UserByID(id int) (stored.User, error)

func (*DB) UserItemByID

func (d *DB) UserItemByID(user, id int) (stored.Item, error)

func (*DB) UserItemList

func (d *DB) UserItemList(user, id int) (stored.List, []stored.Item, error)

func (*DB) View

func (d *DB) View() (Tx, error)

type Tx

type Tx struct {
	// contains filtered or unexported fields
}

func (*Tx) Close

func (t *Tx) Close()

func (*Tx) Rollback

func (t *Tx) Rollback()

Jump to

Keyboard shortcuts

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