tasks

package
v0.0.0-...-538457b Latest Latest
Warning

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

Go to latest
Published: May 7, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *storm.DB
)

Functions

func Add

func Add(name string, fieldValuePairs []string) (err error)

Add a new task given its name

func AddTimerForTask

func AddTimerForTask(taskID int, d time.Duration) (bool, error)

AddTimerForTask adds a timer for a given task id and duration

func CancelTimerForTask

func CancelTimerForTask(taskID int)

func Delete

func Delete(ID int)

Delete a task with given id

func Init

func Init(dbfile string)

func Print

func Print()

Print all tasks in a ASCII table

func UpdateFields

func UpdateFields(taskID int, fieldValuePairs []string) (bool, error)

UpdateFields updates the tasks attributes

Types

This section is empty.

Jump to

Keyboard shortcuts

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