Versions in this module Expand all Collapse all v1 v1.5.0 Jul 19, 2026 Changes in this version + const DefaultBufferSize + type Remainder struct + M int + S int + T int + type SessParams map[config.SessionType]struct + type Session struct + Completed bool + Duration time.Duration + EndTime time.Time + Name config.SessionType + StartTime time.Time + Tags []string + Timeline []Timeline + func (s *Session) Adjust(since time.Time) + func (s *Session) ElapsedTimeInSeconds() float64 + func (s *Session) IsResuming() bool + func (s *Session) Normalise() + func (s *Session) RealElapsedTimeInSeconds() float64 + func (s *Session) Remaining() Remainder + func (s *Session) SetEndTime() + func (s *Session) ToDBModel() *models.Session + func (s *Session) UpdateEndTime(isCompleted bool) + type Timeline struct + EndTime time.Time + StartTime time.Time + type Timer struct + CurrentSess *Session + Opts *config.Config + SessParams SessParams + SoundStream beep.Streamer + WorkCycle int + func New(dbClient store.DB, cfg *config.Config) *Timer + func (t *Timer) Init() tea.Cmd + func (t *Timer) ReportStatus() error + func (t *Timer) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (t *Timer) View() string