package
Version:
v0.0.0-...-0eb56ef
Opens a new window with list of versions in this module.
Published: Oct 5, 2016
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Delete removes one task for given ID
DeleteAll removes all tasks from db
NewID generates an unique id used for task ID
func RegisterDB(database taskStore)
RegisterDB allows to use different task store implementation
type Task struct {
ID string `json:"id"`
Name string `json:"name"`
Done bool `json:"done"`
}
Task struct
func All() (tasks []*Task)
All gets all tasks from store
func Create(tsk *Task) (createdTask *Task)
Create makes new task
Get returns the task for given ID
Update updated given task
Source Files
¶
Click to show internal directories.
Click to hide internal directories.