controllers

package
v0.0.0-...-86f6099 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2014 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	*revel.Controller
	revmgo.MongoController
	ActiveUser *models.User
}

func (Application) Index

func (c Application) Index() revel.Result

func (Application) NavLeft

func (c Application) NavLeft() revel.Result

func (Application) NavRight

func (c Application) NavRight() revel.Result

func (Application) Preview

func (c Application) Preview(text string) revel.Result

func (*Application) Setup

func (c *Application) Setup() revel.Result

Responsible for doing any necessary setup for each web request.

func (Application) UserAuthenticated

func (c Application) UserAuthenticated() bool

type Blog

type Blog struct {
	Application
}

func (Blog) Delete

func (c Blog) Delete(id bson.ObjectId) revel.Result

func (Blog) GetCreate

func (c Blog) GetCreate() revel.Result

func (Blog) GetDelete

func (c Blog) GetDelete(id bson.ObjectId) revel.Result

func (Blog) GetRead

func (c Blog) GetRead(id bson.ObjectId) revel.Result

func (Blog) GetUpdate

func (c Blog) GetUpdate(id bson.ObjectId) revel.Result

func (Blog) Index

func (c Blog) Index() revel.Result
func (c Blog) Links(id bson.ObjectId) revel.Result

func (Blog) PostCreate

func (c Blog) PostCreate(article *models.Article) revel.Result

func (Blog) Tag

func (c Blog) Tag(tag string) revel.Result

func (Blog) Update

func (c Blog) Update(article *models.Article) revel.Result

type User

type User struct {
	Application
}

func (User) Delete

func (c User) Delete(id bson.ObjectId) revel.Result
func (c User) EditLinks(id bson.ObjectId) revel.Result

func (User) GetCreate

func (c User) GetCreate() revel.Result

func (User) GetDelete

func (c User) GetDelete(id bson.ObjectId) revel.Result

func (User) GetLogin

func (c User) GetLogin() revel.Result

func (User) GetLogout

func (c User) GetLogout() revel.Result

func (User) GetRead

func (c User) GetRead(id bson.ObjectId) revel.Result

func (User) GetUpdate

func (c User) GetUpdate(id bson.ObjectId) revel.Result

func (User) PostCreate

func (c User) PostCreate(user *models.User, password models.Password) revel.Result

func (User) PostLogin

func (c User) PostLogin(Email, Password string) revel.Result

func (User) PostUpdate

func (c User) PostUpdate(id bson.ObjectId, user *models.User, password models.Password) revel.Result

Jump to

Keyboard shortcuts

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