Documentation ¶
Index ¶
- type Application
- type DbPlugin
- 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 {
*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
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) CancelBooking ¶
func (Hotels) ConfirmBooking ¶
func (Hotels) SaveSettings ¶
Click to show internal directories.
Click to hide internal directories.