pomodoro

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INITIALIZED_STATE           string = "init"
	WORK_STATE                  string = "working"
	WORK_COUNT_EVALUATION_STATE string = "counting_work"
	REST_STATE                  string = "resting"
	LONG_REST_STATE             string = "long_resting"
	WORK_CONTINUE_PROMPT        string = "waiting_for_user"

	WORK_STARTED_EVENT        string = "started"
	WORK_FINISHED_EVENT       string = "work_finished"
	REST_FINISHED_EVENT       string = "rest_finished"
	MORE_WORK_NEEDED_EVENT    string = "more_work_needed"
	NO_MORE_WORK_NEEDED_EVENT string = "no_more_work_needed"
	WORK_RESTARTED_EVENT      string = "restarted"
	WORK_RESUMED_EVENT        string = "resumed"
	WORK_INTERRUPTED_EVENT    string = "interrupted"
)

Variables

View Source
var StdinChan = make(chan rune)

Functions

This section is empty.

Types

type Pomodoro

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

func NewPomodoro

func NewPomodoro(pomodoroSettings *PomodoroSettings) *Pomodoro

func (*Pomodoro) Start

func (p *Pomodoro) Start()

type PomodoroSettings

type PomodoroSettings struct {
	TaskName                string
	WorkDurationMinutes     int
	RestDurationMinutes     int
	LongRestDurationMinutes int
	Cycles                  int
	WorkSoundVolume         float64
	FinishSoundVolume       float64
	TimerToFileEnabled      bool
	StatsToFileEnabled      bool
}

type PomodoroStats added in v0.0.3

type PomodoroStats struct {
	Enabled       bool
	Completions   int `json:"completions"`
	Interruptions int `json:"interruptions"`
	Rests         int `json:"rests"`
}

func (*PomodoroStats) Done added in v0.0.3

func (ps *PomodoroStats) Done()

func (*PomodoroStats) Interrupted added in v0.0.3

func (ps *PomodoroStats) Interrupted()

func (*PomodoroStats) Rest added in v0.0.3

func (ps *PomodoroStats) Rest()

type Subtask

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

Jump to

Keyboard shortcuts

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