Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTask ¶
func CreateTask(w http.ResponseWriter, r *http.Request)
CreateTask : for POST method
func DeleteTask ¶
func DeleteTask(w http.ResponseWriter, r *http.Request)
DeleteTask : for DELETE method, deletes record by ID
func GetTask ¶
func GetTask(w http.ResponseWriter, r *http.Request)
GetTask : for GET http method, expects id param in URL
func GetTaskList ¶
func GetTaskList(w http.ResponseWriter, r *http.Request)
GetTaskList : get all tasks in db
func MarkCompleted ¶
func MarkCompleted(w http.ResponseWriter, r *http.Request)
MarkCompleted : using PUT, mark task (specified by id) as having been completed
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.