Documentation
¶
Index ¶
- func GetDailyStats() (sessions int, minutes int, err error)
- func GetSessionStats() (totalSessions int, totalFocusMinutes float64, avgSessionsPerDay float64, ...)
- func LogSession(workMin, breakMin, numSessions int, startTime, endTime time.Time, ...) error
- func PlaySound(soundType string) error
- func ShowNotification(title, message string) error
- type Session
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDailyStats ¶
GetDailyStats returns statistics for the current day
func GetSessionStats ¶
func GetSessionStats() (totalSessions int, totalFocusMinutes float64, avgSessionsPerDay float64, err error)
GetSessionStats returns statistics about completed Pomodoro sessions
func LogSession ¶
func LogSession(workMin, breakMin, numSessions int, startTime, endTime time.Time, isCompleted bool) error
LogSession logs a completed Pomodoro session
func ShowNotification ¶
ShowNotification displays a system notification
Types ¶
type Session ¶
type Session struct {
WorkMinutes int `json:"work_minutes"`
BreakMinutes int `json:"break_minutes"`
NumSessions int `json:"num_sessions"`
StartTime time.Time `json:"start_time"`
EndTime time.Time `json:"end_time"`
IsCompleted bool `json:"is_completed"`
}
Session represents a completed Pomodoro session
Click to show internal directories.
Click to hide internal directories.