Documentation ¶
Index ¶
- type Store
- func (s *Store) Close()
- func (s *Store) CompleteTask(id int) (Task, error)
- func (s *Store) DeleteAllTasks() error
- func (s *Store) DeleteTask(id int) (Task, error)
- func (s *Store) GetActiveTasks() ([]Task, error)
- func (s *Store) GetAllCompletedTasks() ([]Task, error)
- func (s *Store) GetAllTasks() ([]Task, error)
- func (s *Store) GetTasksDoneToday() ([]Task, error)
- func (s *Store) InsertTask(data string) error
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
Store represents a task store with various high level helper methods
func (*Store) CompleteTask ¶
CompleteTask marks a task as done given it's ID
func (*Store) DeleteAllTasks ¶
DeleteAllTasks deletes all tasks by deleting thw whole bucket
func (*Store) DeleteTask ¶
DeleteTask deletes a specific task given it's ID
func (*Store) GetActiveTasks ¶
GetActiveTasks return list of currently active tasks
func (*Store) GetAllCompletedTasks ¶
GetAllCompletedTasks return list of completed tasks
func (*Store) GetAllTasks ¶
GetAllTasks returns all tasks (both active and done)
func (*Store) GetTasksDoneToday ¶
GetTasksDoneToday returns task which are marked as done today
func (*Store) InsertTask ¶
InsertTask inserts a new task into DB
Click to show internal directories.
Click to hide internal directories.