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
type PomodoroSettings ¶
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()
Click to show internal directories.
Click to hide internal directories.