controllers

package
v0.0.0-...-c3b28c5 Latest Latest
Warning

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

Go to latest
Published: May 19, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dbm *gorp.DbMap
)

Functions

func InitDB

func InitDB()

Types

type Application

type Application struct {
	Gorp
}

func (Application) Index

func (c Application) Index() revel.Result

type Gorp

type Gorp struct {
	*r.Controller
	Txn *gorp.Transaction
}

func (*Gorp) Begin

func (c *Gorp) Begin() r.Result

func (*Gorp) Commit

func (c *Gorp) Commit() r.Result

func (*Gorp) Rollback

func (c *Gorp) Rollback() r.Result

type Todos

type Todos struct {
	Application
}

func (Todos) ClearCompletedTodos

func (c Todos) ClearCompletedTodos() revel.Result

func (Todos) CreateTodo

func (c Todos) CreateTodo(title string) revel.Result

func (Todos) DeleteTodo

func (c Todos) DeleteTodo(id int) revel.Result

func (Todos) Index

func (c Todos) Index() revel.Result

func (Todos) UpdateTodo

func (c Todos) UpdateTodo(id int, title string, completed bool) revel.Result

Jump to

Keyboard shortcuts

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