models

package
v0.0.0-...-6f976ea Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SavedTimer

type SavedTimer struct {
	Name        string        `json:"name"`
	Duration    time.Duration `json:"duration"`
	DoneMessage string        `json:"done_message"`
}

func (SavedTimer) AsTimerModel

func (timer SavedTimer) AsTimerModel() TimerModel

type TimerModel

type TimerModel struct {
	// contains filtered or unexported fields
}

func CreateTimer

func CreateTimer(duration time.Duration, name string, message string) TimerModel

func (TimerModel) Init

func (m TimerModel) Init() tea.Cmd

func (TimerModel) TableRowDisplay

func (m TimerModel) TableRowDisplay() []string

func (TimerModel) Update

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

func (TimerModel) View

func (m TimerModel) View() string

Jump to

Keyboard shortcuts

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