timer

package
v0.0.0-...-50563c7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

type Model struct {
	Paused   bool
	Timeout  time.Duration
	Interval time.Duration
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) ResetTimer

func (m Model) ResetTimer(d time.Duration) Model

func (Model) TogglePause

func (m Model) TogglePause() tea.Msg

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type TickMsg

type TickMsg time.Time

type TogglePauseMsg

type TogglePauseMsg struct{}

Jump to

Keyboard shortcuts

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