Versions in this module Expand all Collapse all v1 v1.5.0 Jul 19, 2026 Changes in this version + type Aggregates struct + Daily map[string]time.Duration + Hourly map[string]time.Duration + Monthly map[string]time.Duration + Weekday map[string]time.Duration + Weekly map[string]time.Duration + Yearly map[string]time.Duration + type Opts struct + type Record struct + Duration time.Duration + Name string + type Stats struct + Aggregates Aggregates + DB store.DB + EndTime time.Time + LastDayTimeline []Timeline + Opts Opts + Sessions []*models.Session + StartTime time.Time + Summary Summary + func (s *Stats) Compute(sessions []*models.Session) + func (s *Stats) Server(port uint) error + func (s *Stats) ToJSON() ([]byte, error) + type Summary struct + Abandoned int + AvgAbandoned int + AvgCompleted int + AvgTime time.Duration + Completed int + Tags map[string]time.Duration + TotalTime time.Duration + type TemplateData struct + Days int + EndTime string + MainChart string + StartTime string + Stats string + type Timeline struct + Duration time.Duration + StartTime time.Time + Tags []string