Documentation ¶
Index ¶
- Variables
- type Core
- func (c *Core) AddTodoItem(lid int64, item *TodoItem) (*TodoItem, error)
- func (c *Core) AddTodoList(list *TodoList) (*TodoList, error)
- func (c *Core) DeleteTodoList(id int64) error
- func (c *Core) DeleteTodoListItem(id int64) error
- func (c *Core) EditTodoListName(id int64, name string) error
- func (c *Core) Ex(name string) error
- func (c *Core) GetTodoList(id int64) (*TodoList, error)
- func (c *Core) GetTodoListItem(id int64) (*TodoItem, error)
- func (c *Core) UpdateTodoItem(item *TodoItem) error
- type TodoItem
- type TodoList
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("list not found") ErrItemNotFound = errors.New("item not found") )
Generic error messages
Functions ¶
This section is empty.
Types ¶
type Core ¶
type Core struct {
// contains filtered or unexported fields
}
Core ...
func (*Core) AddTodoItem ¶
AddTodoItem adds item to the list
func (*Core) AddTodoList ¶
AddTodoList creates a todo list with it's items
func (*Core) DeleteTodoList ¶
DeleteTodoList removes a todo list with it's items
func (*Core) DeleteTodoListItem ¶
DeleteTodoListItem removes items from the list
func (*Core) EditTodoListName ¶
EditTodoListName updates the name of the list
func (*Core) GetTodoList ¶
GetTodoList returns whole todolist
func (*Core) GetTodoListItem ¶
GetTodoListItem returns a todolist item
func (*Core) UpdateTodoItem ¶
UpdateTodoItem updates an item
Click to show internal directories.
Click to hide internal directories.