Documentation ¶
Index ¶
- type Application
- func (c Application) AddUser() rev.Result
- func (c Application) Index() rev.Result
- func (c Application) Login(username, password string) rev.Result
- func (c Application) Logout() rev.Result
- func (c Application) Register() rev.Result
- func (c Application) SaveUser(user models.User, verifyPassword string) rev.Result
- type GorpController
- type GorpPlugin
- type Hotels
- func (c Hotels) Book(id int) rev.Result
- func (c Hotels) CancelBooking(id int) rev.Result
- func (c Hotels) ConfirmBooking(id int, booking models.Booking) rev.Result
- func (c Hotels) Index() rev.Result
- func (c Hotels) List(search string, size, page int) rev.Result
- func (c Hotels) SaveSettings(password, verifyPassword string) rev.Result
- func (c Hotels) Settings() rev.Result
- func (c Hotels) Show(id int) rev.Result
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
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) CancelBooking ¶
func (Hotels) ConfirmBooking ¶
func (Hotels) SaveSettings ¶
Click to show internal directories.
Click to hide internal directories.