timer

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pomodoro

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

Pomodoro pomodoro timer struct.

func NewPomodoro

func NewPomodoro(
	signaller *signaller.Signaller,
	workPeriodMinutes, shortRestMinutes, longRestMinutes int,
	controlSignalsChan chan model.ControlSignals,
	exitChan chan struct{},
	ticksChan, ticksReset chan float64,
	timeLeftChan chan string,
	mu *sync.Mutex,
) *Pomodoro

NewPomodoro creates an instance of pomodoro timer.

func (*Pomodoro) Run

func (p *Pomodoro) Run()

Run runs pomodoro timer.

Jump to

Keyboard shortcuts

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