tasks

package
Version: v0.0.0-...-48a28c7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StateIncomplete = "incomplete"
	StateComplete   = "complete"
)

Variables

This section is empty.

Functions

func Count

func Count(c context.Context) (int, error)

Types

type Task

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

func Create

func Create(c context.Context, title string) (*Task, error)

func Get

func Get(c context.Context, taskID string) (*Task, error)

func GetAll

func GetAll(c context.Context) ([]*Task, error)

func (*Task) Complete

func (t *Task) Complete(c context.Context) error

func (*Task) Delete

func (t *Task) Delete(c context.Context) error

func (*Task) ID

func (t *Task) ID() string

func (*Task) Incomplete

func (t *Task) Incomplete(c context.Context) error

func (*Task) Recover

func (t *Task) Recover(c context.Context) error

func (*Task) State

func (t *Task) State() string

func (*Task) Title

func (t *Task) Title() string

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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