controllers

package
v0.0.0-...-4a64ca1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2012 License: MIT Imports: 9 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 {
	GorpController
}

func (Application) AddUser

func (c Application) AddUser() rev.Result

func (Application) Index

func (c Application) Index() rev.Result

func (Application) Login

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

func (Application) Logout

func (c Application) Logout() rev.Result

func (Application) Register

func (c Application) Register() rev.Result

func (Application) SaveUser

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

type GorpController

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

func (*GorpController) Begin

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

func (*GorpController) Commit

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

func (*GorpController) Rollback

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

type GorpPlugin

type GorpPlugin struct {
	rev.EmptyPlugin
}

func (GorpPlugin) OnAppStart

func (p GorpPlugin) OnAppStart()

type Hotels

type Hotels struct {
	Application
}

func (Hotels) Book

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

func (Hotels) CancelBooking

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

func (Hotels) ConfirmBooking

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

func (Hotels) Index

func (c Hotels) Index() rev.Result

func (Hotels) List

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

func (Hotels) SaveSettings

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

func (Hotels) Settings

func (c Hotels) Settings() rev.Result

func (Hotels) Show

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

Jump to

Keyboard shortcuts

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