Documentation
¶
Index ¶
- func GetDBPath() string
- func InitDB(dbPath string) error
- type TaskDB
- func (t *TaskDB) ArchiveCompleted() (int64, error)
- func (t *TaskDB) Close() error
- func (t *TaskDB) CreateSchema() error
- func (t *TaskDB) CreateTask(title string, url string, state string) (int64, error)
- func (t *TaskDB) DeleteTask(id int) error
- func (t *TaskDB) GetArchivedTasks(search, dateExact, dateAfter, dateBefore string) ([]task.Task, error)
- func (t *TaskDB) GetTask(id int) (*task.Task, error)
- func (t *TaskDB) GetTasks() ([]task.Task, error)
- func (t *TaskDB) MarkDone(id int) error
- func (t *TaskDB) SwapTaskOrder(idA int, orderA int, idB int, orderB int) error
- func (t *TaskDB) UpdateTask(id int, title, url, notes, subtasks string, state string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TaskDB ¶
type TaskDB struct {
// contains filtered or unexported fields
}
func (*TaskDB) ArchiveCompleted ¶
ArchiveCompleted archives all tasks with Done or Canceled state
func (*TaskDB) CreateSchema ¶
func (*TaskDB) CreateTask ¶
func (*TaskDB) DeleteTask ¶
func (*TaskDB) GetArchivedTasks ¶
func (t *TaskDB) GetArchivedTasks(search, dateExact, dateAfter, dateBefore string) ([]task.Task, error)
GetArchivedTasks returns archived tasks with optional filters
func (*TaskDB) SwapTaskOrder ¶
Click to show internal directories.
Click to hide internal directories.