Documentation
¶
Index ¶
- func FindDBPath() (string, error)
- func ValidView(name string) bool
- type AmbiguousTaskError
- type DB
- func (d *DB) Close() error
- func (d *DB) FindTasksByTitle(substr string) ([]model.Task, error)
- func (d *DB) GetAuthToken() (string, error)
- func (d *DB) GetChecklistItems(taskUUID string) ([]model.ChecklistItem, error)
- func (d *DB) GetTask(uuidOrTitle string) (*model.Task, error)
- func (d *DB) GetTaskByUUID(uuid string) (*model.Task, error)
- func (d *DB) ListAreas() ([]model.Area, error)
- func (d *DB) ListProjects(areaFilter string, includeCompleted bool) ([]model.Project, error)
- func (d *DB) ListTags() ([]model.Tag, error)
- func (d *DB) ListTasks(view string, opts TaskFilter) ([]model.Task, error)
- func (d *DB) SearchTasks(query string) ([]model.Task, error)
- type TaskFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AmbiguousTaskError ¶
func (*AmbiguousTaskError) Error ¶
func (e *AmbiguousTaskError) Error() string
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func NewFromSQL ¶
NewFromSQL wraps an existing *sql.DB. Test-only; production code uses Open.
func (*DB) GetAuthToken ¶
func (*DB) GetChecklistItems ¶
func (d *DB) GetChecklistItems(taskUUID string) ([]model.ChecklistItem, error)
func (*DB) ListProjects ¶
type TaskFilter ¶
Click to show internal directories.
Click to hide internal directories.