Documentation
¶
Index ¶
- func ParseDidaTime(value string) (time.Time, bool)
- type Column
- type Project
- type SyncView
- type Task
- func ActiveTasks(tasks []Task) []Task
- func FindTask(tasks []Task, id string) (Task, bool)
- func NormalizeTasks(items []map[string]any, projectNames map[string]string, now time.Time) []Task
- func ProjectTasks(tasks []Task, projectID string) []Task
- func SearchTasks(tasks []Task, query string) []Task
- func TodayTasks(tasks []Task, now time.Time) []Task
- func UpcomingTasks(tasks []Task, now time.Time, days int) []Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Column ¶
type Column struct {
ID string `json:"id"`
ProjectID string `json:"projectId,omitempty"`
Name string `json:"name,omitempty"`
TaskCount int `json:"taskCount"`
}
func InferColumns ¶
type Project ¶
type Project struct {
ID string `json:"id"`
Name string `json:"name"`
Closed bool `json:"closed,omitempty"`
Color string `json:"color,omitempty"`
Raw any `json:"raw,omitempty"`
}
func NormalizeProjects ¶
type SyncView ¶
type SyncView struct {
InboxID string `json:"inboxId,omitempty"`
Projects []Project `json:"projects"`
Tasks []Task `json:"tasks"`
ProjectGroups []map[string]any `json:"projectGroups,omitempty"`
Tags []map[string]any `json:"tags,omitempty"`
Filters []map[string]any `json:"filters,omitempty"`
Counts map[string]int `json:"counts"`
}
type Task ¶
type Task struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
ProjectName string `json:"projectName,omitempty"`
ParentID string `json:"parentId,omitempty"`
Title string `json:"title"`
Content string `json:"content,omitempty"`
Desc string `json:"desc,omitempty"`
AllDay bool `json:"allDay,omitempty"`
DueDate string `json:"dueDate,omitempty"`
DueUnix int64 `json:"dueUnix,omitempty"`
StartDate string `json:"startDate,omitempty"`
StartUnix int64 `json:"startUnix,omitempty"`
CompletedAt string `json:"completedTime,omitempty"`
CompletedUnix int64 `json:"completedUnix,omitempty"`
Priority int `json:"priority"`
Status int `json:"status"`
Deleted int `json:"deleted"`
ColumnID string `json:"columnId,omitempty"`
Tags []string `json:"tags,omitempty"`
Items []map[string]any `json:"items,omitempty"`
Reminders []any `json:"reminders,omitempty"`
Repeat string `json:"repeat,omitempty"`
RepeatFrom string `json:"repeatFrom,omitempty"`
RepeatFlag string `json:"repeatFlag,omitempty"`
IsFloating bool `json:"isFloating,omitempty"`
Overdue bool `json:"overdue,omitempty"`
Raw any `json:"raw,omitempty"`
}
func ActiveTasks ¶
func NormalizeTasks ¶
func ProjectTasks ¶
func SearchTasks ¶
Click to show internal directories.
Click to hide internal directories.