Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderToday ¶ added in v1.64.1
RenderToday generates a text representation from goal of the current day. If out is set to output.RawJSONOutput or output.JSONOutput, the goal will be marshaled to JSON. Expects exactly one summary for the current day. Will return an error otherwise.
Types ¶
type ChartData ¶ added in v1.64.1
type ChartData struct { ActualSeconds float64 `json:"actual_seconds"` ActualSecondsText string `json:"actual_seconds_text"` GoalSeconds int `json:"goal_seconds"` GoalSecondsText string `json:"goal_seconds_text"` Range Range `json:"range"` RangeStatus string `json:"range_status"` RangeStatusReason string `json:"range_status_reason"` RangeStatusReasonShort string `json:"range_status_reason_short"` }
ChartData represents the chart data of a goal.
type Data ¶ added in v1.64.1
type Data struct { AverageStatus string `json:"average_status"` ChartData []ChartData `json:"chart_data"` CreatedAt string `json:"created_at"` CumulativeStatus string `json:"cumulative_status"` CustomTitle *string `json:"custom_title"` Delta string `json:"delta"` Editors []string `json:"editors"` ID string `json:"id"` IgnoreDays []string `json:"ignore_days"` IgnoreZeroDays bool `json:"ignore_zero_days"` ImproveByPercent *float64 `json:"improve_by_percent"` IsCurrentUserOwner bool `json:"is_current_user_owner"` IsEnabled bool `json:"is_enabled"` IsInverse bool `json:"is_inverse"` IsSnoozed bool `json:"is_snoozed"` IsTweeting bool `json:"is_tweeting"` Languages []string `json:"languages"` ModifiedAt *string `json:"modified_at"` Owner Owner `json:"owner"` Projects []string `json:"projects"` RangeText string `json:"range_text"` Seconds int `json:"seconds"` SnoozeUntil *string `json:"snooze_until"` Status string `json:"status"` StatusPercentCalculated int `json:"status_percent_calculated"` Subscribers []Subscriber `json:"subscribers"` Title string `json:"title"` Type string `json:"type"` }
Data represents the data of a goal.
type Owner ¶ added in v1.64.1
type Owner struct { DisplayName string `json:"display_name"` Email *string `json:"email"` FullName string `json:"full_name"` ID string `json:"id"` Photo string `json:"photo"` Username string `json:"username"` }
Owner represents the owner of a goal.
type Range ¶ added in v1.64.1
type Range struct { Date string `json:"date"` End string `json:"end"` Start string `json:"start"` Text string `json:"text"` Timezone string `json:"timezone"` }
Range represents the time range of a goal.
type Subscriber ¶ added in v1.64.1
type Subscriber struct { DisplayName string `json:"display_name"` Email *string `json:"email"` EmailFrequency string `json:"email_frequency"` FullName string `json:"full_name"` UserID string `json:"user_id"` Username string `json:"username"` }
Subscriber represents a subscriber of a goal.
Click to show internal directories.
Click to hide internal directories.