controllers

package
v0.0.0-...-4009bd7 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2012 License: MIT Imports: 7 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 {
	*rev.Controller
}

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 DbPlugin

type DbPlugin struct {
	rev.EmptyPlugin
}

func (DbPlugin) AfterRequest

func (p DbPlugin) AfterRequest(c *rev.Controller)

func (DbPlugin) BeforeRequest

func (p DbPlugin) BeforeRequest(c *rev.Controller)

func (DbPlugin) OnAppStart

func (p DbPlugin) OnAppStart()

func (DbPlugin) OnException

func (p DbPlugin) OnException(c *rev.Controller, err interface{})

type Hotels

type Hotels struct {
	*rev.Controller
}

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