Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct {
// General
ID string `json:"id,omitempty"`
Type string `json:"type,omitempty"`
DateCreated time.Time `json:"dateCreated,omitempty"`
Text string `json:"text,omitempty"`
Notes string `json:"notes,omitempty"`
Tags []string `json:"tags,omitempty"`
Value float64 `json:"value,omitempty"`
Priority int `json:"priority,omitempty"`
Attribute string `json:"attribute,omitempty"`
Challenge TaskChallenge `json:"challenge,omitempty"`
// Multiple types
History []TaskHistory `json:"history,omitempty"`
Completed bool `json:"completed,omitempty"`
CollapseChecklist bool `json:"collapseChecklist,omitempty"`
Checklist []TaskChecklistEntry `json:"checklist,omitempty"`
// Habit
Up bool `json:"up,omitempty"`
Down bool `json:"down,omitempty"`
// Daily
Repeat TaskRepeat `json:"repeat,omitempty"`
Streak int `json:"streak,omitempty"`
// Todo
DateCompleted time.Time `json:"dateCompleted,omitempty"`
Date string `json:"date,omitempty"`
}
type TaskChallenge ¶
type TaskChecklistEntry ¶
type TaskHistory ¶
type TaskHistory struct {
Date TaskHistoryDate `json:"date,omitempty"` // WTF: Though docs says this is a Date, there is an timestamp in it
Value float64 `json:"value,omitempty"`
}
type TaskHistoryDate ¶
func (TaskHistoryDate) MarshalJSON ¶
func (t TaskHistoryDate) MarshalJSON() ([]byte, error)
func (TaskHistoryDate) String ¶
func (t TaskHistoryDate) String() string
func (*TaskHistoryDate) UnmarshalJSON ¶
func (t *TaskHistoryDate) UnmarshalJSON(in []byte) error
Click to show internal directories.
Click to hide internal directories.