controllers

package
v0.0.0-...-1193d07 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2013 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Dbm *gorp.DbMap
)

Functions

func Init

func Init()

Types

type Application

type Application struct {
	GorpController
}

func (Application) AddUser

func (c Application) AddUser() revel.Result

func (Application) Index

func (c Application) Index() revel.Result

func (Application) Login

func (c Application) Login(username, password string) revel.Result

func (Application) Logout

func (c Application) Logout() revel.Result

func (Application) Register

func (c Application) Register() revel.Result

func (Application) SaveUser

func (c Application) SaveUser(user models.User, verifyPassword string) revel.Result

type GorpController

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

func (*GorpController) Begin

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

func (*GorpController) Commit

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

func (*GorpController) Rollback

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

type Hotels

type Hotels struct {
	Application
}

func (Hotels) Book

func (c Hotels) Book(id int) revel.Result

func (Hotels) CancelBooking

func (c Hotels) CancelBooking(id int) revel.Result

func (Hotels) ConfirmBooking

func (c Hotels) ConfirmBooking(id int, booking models.Booking) revel.Result

func (Hotels) Index

func (c Hotels) Index() revel.Result

func (Hotels) List

func (c Hotels) List(search string, size, page int) revel.Result

func (Hotels) SaveSettings

func (c Hotels) SaveSettings(password, verifyPassword string) revel.Result

func (Hotels) Settings

func (c Hotels) Settings() revel.Result

func (Hotels) Show

func (c Hotels) Show(id int) revel.Result

Jump to

Keyboard shortcuts

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