tomato

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 4 Imported by: 0

README

Tomato

To install:

go get github.com/smartystreets/tomato/tomato

Ensure that $GOPATH/bin is in your $PATH and then just run tomato to start the timer.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

func NewController

func NewController(terminal io.Reader, system System, sessions int, scale time.Duration) *Controller

func (*Controller) Run

func (this *Controller) Run()

type GenericOS

type GenericOS struct{}

func (*GenericOS) Sleep

func (this *GenericOS) Sleep(duration time.Duration)

type System

type System interface {
	Notify(message string)
	FocusApp(name string)
	LockScreen()
	Sleep(time.Duration)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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