Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Task ¶
type Task struct {
// The unique identifier for the task
Id string
// A short numerical identifier for the task, used for quick reference in the UI.
ShortId int
// The parent recurrence template the task was created from (if any). This
// is used when finding other tasks from the same recurrence template or
// when modifying the recurrence options.
TemplateId string
// The title of the task
Title string `json:"title"`
// The priority of the task, typically something like `H`, `M`, or `L`,
// though the values are user-defined.
Priority string `json:"priority"`
// The status of the task, one of `pending`, `active`, or `done`. Tasks
// start as `pending`, and can move between `active`, `pending`, and `done`
// as the user sees fit. Typically a task does not move from done to the
// other statuses, but it is not enforced.
Status TaskStatus `json:"status"`
// A list of tags for the task. Tags are useful for grouping tasks together
// and can be used to filter tasks in the UI.
Tags []string `json:"tags"`
// The time the task was created
CreatedAt time.Time `json:"created_at"`
// The time the task was last updated
UpdatedAt time.Time `json:"updated_at"`
}
type TaskStatus ¶
type TaskStatus string
const ( TaskStatusPending TaskStatus = "pending" TaskStatusActive TaskStatus = "active" TaskStatusDone TaskStatus = "done" )
Click to show internal directories.
Click to hide internal directories.