services

package
v0.0.0-...-ea2a801 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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