Documentation
¶
Overview ¶
Package stats reports Focus session statistics
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Aggregates ¶ added in v1.4.0
type Aggregates struct {
Weekly map[string]time.Duration `json:"weekly"`
Weekday map[string]time.Duration `json:"weekday"`
Daily map[string]time.Duration `json:"daily"`
Yearly map[string]time.Duration `json:"yearly"`
Monthly map[string]time.Duration `json:"monthly"`
Hourly map[string]time.Duration `json:"hourly"`
// contains filtered or unexported fields
}
type Opts ¶ added in v1.4.0
type Opts struct {
config.FilterConfig
}
type Stats ¶ added in v1.4.0
type Stats struct {
Aggregates Aggregates `json:"aggregates"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
DB store.DB `json:"-"`
Opts Opts `json:"-"`
Sessions []*models.Session `json:"-"`
LastDayTimeline []Timeline `json:"timeline"`
Summary Summary `json:"summary"`
}
Stats represents the computed focus statistics for a period of time.
type TemplateData ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.