Documentation ¶
Index ¶
- 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 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 uint64) revel.Result
- func (c Hotels) ListJSON(search string, size, page uint64) 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 ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct {
gorpController.Controller
}
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 Hotels ¶
type Hotels struct {
Application
}
func (Hotels) ConfirmBooking ¶
func (Hotels) ListJSON ¶
swagger:operation GET /demo demo
Enter Demo ¶
--- produces: - text/html parameters:
- name: user in: formData description: user required: true type: string
- name: demo in: formData description: demo required: true type: string
responses:
'200': description: Success '401': description: Invalid User
func (Hotels) SaveSettings ¶
Click to show internal directories.
Click to hide internal directories.