model

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tomato

type Tomato struct {
	// State is the current timer state (Work, ShortBreak, or LongBreak).
	state.State

	// Count is the number of work sessions completed today, used to
	// determine whether the next break should be short or long (every
	// 4th tomato triggers a long break).
	Count int

	// Elapsed is the number of minutes that have elapsed in the current
	// session. Used for progress tracking and session resumption.
	Elapsed int

	// Tag is an optional label for categorizing the work session
	// (e.g., "coding", "research"). Tags are only saved for completed
	// work sessions, not breaks.
	Tag string
}

Tomato represents a pomodoro session (work or break). It tracks the current state, number of completed work sessions today, elapsed time, and an optional tag for categorization.

Jump to

Keyboard shortcuts

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