logs

package
v1.0.3-0...-7e9eecf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDailyStats

func GetDailyStats() (sessions int, minutes int, err error)

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 PlaySound

func PlaySound(soundType string) error

PlaySound plays a notification sound

func ShowNotification

func ShowNotification(title, message string) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL