Discover Packages
github.com/scubism/go_todo_api
models
package
Version:
v0.0.0-...-a22ae41
Opens a new window with list of versions in this module.
Published: Jun 28, 2016
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Todo struct {
Id bson .ObjectId `json:"id" bson:"_id,omitempty"`
Title string `json:"title" bson:"title" binding:"required,max=16"`
DueDate int64 `json:"due_date" bson:"due_date,omitempty"`
Color string `json:"color" bson:"color"`
Marked int8 `json:"marked" bson:"marked"`
}
func FindTodos(db *mgo.Database) ([]Todo , error )
func (todo *Todo ) Create(db *mgo.Database) error
func (todo *Todo ) Delete(db *mgo.Database) error
func (todo *Todo ) Update(db *mgo.Database) error
type TodoGroup struct {
Id bson .ObjectId `json:"id" bson:"_id,omitempty"`
Title string `json:"title" bson:"title" binding:"required"`
Todos []bson .ObjectId `json:"todos" bson:"todos,omitempty"`
}
type TodoMove struct {
PriorSiblingId string `json:"prior_sibling_id"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.