Discover Packages
git.sr.ht/~vendion/gpomo-server
pkg
pomodo
package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Jun 29, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package pomodo manages the pomodo timer.
Step is a step in the pomodoro technique.
const (
Work Step = iota
ShortBreak
LongBreak
)
GetStartingTime returns the number of minutes for the session timer.
type Timer struct {
CurrentStep Step
Duration timeRemaining
Ticking bool
Time *timeRemaining
}
Timer contains the state of the pomodo timer.
New returns a new instance of Timer.
Start starts a new timer that ticks once a second.
Stop signals the currently running timer to stop.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.