handler

package
v0.0.0-...-b6f969d Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package handler include todo handlers to common REST methods

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTodo

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

GetTodo Returns a todo by ID

func GetTodos

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

GetTodos returns all todos

func PostTodo

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

PostTodo create a todo

func PutTodo

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

PutTodo Update a todo by ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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