timer

package
v0.0.0-...-097b59e Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Stopped = iota
	Pomodoro
	Break
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Timer

type Timer struct {
	Length time.Duration
	// contains filtered or unexported fields
}

func GetInstance

func GetInstance() *Timer

func (*Timer) HasEnded

func (t *Timer) HasEnded() bool

func (*Timer) Remainder

func (t *Timer) Remainder() string

func (*Timer) StartAndRunAfter

func (t *Timer) StartAndRunAfter(now time.Time, runAfter func())

func (*Timer) Stop

func (t *Timer) Stop()

func (*Timer) TimerLength

func (t *Timer) TimerLength() string

Jump to

Keyboard shortcuts

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