handlers

package
v0.0.0-...-dee277b Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTodoItemHandler

func AddTodoItemHandler(db *mgo.Collection) http.HandlerFunc

AddTodoItemHandler adds a new TodoItem.

func CompleteTodoItemHandler

func CompleteTodoItemHandler(db *mgo.Collection) http.HandlerFunc

CompleteTodoItemHandler marks a TodoItem as done.

func DeleteTodoItemHandler

func DeleteTodoItemHandler(db *mgo.Collection) http.HandlerFunc

DeleteTodoItemHandler deletes a TodoItem.

func GetByID

func GetByID(id string, db *mgo.Collection) []models.TodoItem

GetByID gets a TodoItem by ID.

func GetTodoItemHandler

func GetTodoItemHandler(db *mgo.Collection) http.HandlerFunc

GetTodoItemHandler gets a TodoItem.

func HealthCheckHandler

func HealthCheckHandler(w http.ResponseWriter, r *http.Request)

HealthCheckHandler handles the GET request to /health.

Types

This section is empty.

Jump to

Keyboard shortcuts

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