Documentation ¶
Index ¶
- func DeleteItem(id int) error
- func SetAreaThingPosition(area int, typ ThingType, id, pos int) error
- func SetFocus(user, id int, focus FocusState) error
- func SetItem(in Item) error
- func SetList(in List) error
- func SetListItemPosition(list, item, pos int) error
- func SetUserFocus(user, item int, focus FocusState) error
- func SortFocusItem(user, id, after int) error
- func UserArea(user, id int) (Area, []Thing, error)
- type Area
- type FocusData
- type FocusState
- type Item
- type ItemState
- type List
- type Thing
- type ThingType
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteItem ¶
func SetFocus ¶
func SetFocus(user, id int, focus FocusState) error
func SetListItemPosition ¶
func SetUserFocus ¶
func SetUserFocus(user, item int, focus FocusState) error
func SortFocusItem ¶
Types ¶
type FocusState ¶
type FocusState int8
const ( FocusNone FocusState = stored.FocusNone FocusNow FocusState = stored.FocusNow FocusLater FocusState = stored.FocusLater FocusWatch FocusState = stored.FocusWatch )
func (FocusState) String ¶
func (i FocusState) String() string
type Item ¶
type Item struct { ID int State ItemState Focus FocusState Title string Body string }
func UserItemByID ¶
func UserItemList ¶
type ItemState ¶
type ItemState int8
const ( ItemOpen ItemState = stored.ItemOpen ItemComplete ItemState = stored.ItemComplete ItemArchived ItemState = stored.ItemArchived )
Click to show internal directories.
Click to hide internal directories.