todo

package
v0.0.0-...-78f112e Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTodo

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

func GetTodos

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

func SetRoutes

func SetRoutes(router *mux.Router)

Types

type EntityId

type EntityId string

type Todo

type Todo struct {
	Id        EntityId `json:"id" bson:"_id"`
	Name      string   `json:"name"`
	Completed bool     `json:"completed"`
}

type Todos

type Todos []Todo

Jump to

Keyboard shortcuts

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