Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - func InitDB()
 - type Application
 - func (c Application) AddUser() revel.Result
 - func (c Application) Index() revel.Result
 - func (c Application) Login(username, password string, remember bool) revel.Result
 - func (c Application) Logout() revel.Result
 - func (c Application) Register() revel.Result
 - func (c Application) SaveUser(user models.User, verifyPassword string) revel.Result
 
- type GorpController
 - type Hotels
 - func (c Hotels) Book(id int) revel.Result
 - func (c Hotels) CancelBooking(id int) revel.Result
 - func (c Hotels) ConfirmBooking(id int, booking models.Booking) revel.Result
 - func (c Hotels) Index() revel.Result
 - func (c Hotels) List(search string, size, page int) revel.Result
 - func (c Hotels) SaveSettings(password, verifyPassword string) revel.Result
 - func (c Hotels) Settings() revel.Result
 - func (c Hotels) Show(id int) revel.Result
 
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var (
	Dbm *gorp.DbMap
)
    Functions ¶
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, remember bool) revel.Result
func (Application) Logout ¶
func (c Application) Logout() revel.Result
func (Application) Register ¶
func (c Application) Register() 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) ConfirmBooking ¶
func (Hotels) SaveSettings ¶
 Click to show internal directories. 
   Click to hide internal directories.