Documentation ¶
Index ¶
- func NewHandlers(repo *Repository)
- type JsonResponse
- type Repository
- func (repository *Repository) About(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminAllReservations(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminDashboard(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminDeleteReservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminNewReservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminPostReservationsCalendar(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminPostShowReservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminProcessReservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminReservationsCalendar(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AdminShowReservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Availability(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) AvailabilityJSON(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) BookRoom(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) ChooseRoom(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Contact(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Generals(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Home(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Logout(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Majors(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) PostAvailability(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) PostLogin(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) PostReservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) Reservation(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) ReservationSummary(w http.ResponseWriter, r *http.Request)
- func (repository *Repository) ShowLogin(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandlers ¶
func NewHandlers(repo *Repository)
Types ¶
type JsonResponse ¶
type Repository ¶
type Repository struct { App *config.AppConfig DB repository.DatabaseRepo }
var (
Repo *Repository
)
func NewRepository ¶
func NewRepository(app *config.AppConfig, db *driver.Database) *Repository
func NewTestRepo ¶
func NewTestRepo(a *config.AppConfig) *Repository
NewTestRepo creates a new repository
func (*Repository) About ¶
func (repository *Repository) About(w http.ResponseWriter, r *http.Request)
About is the handler for the about page
func (*Repository) AdminAllReservations ¶
func (repository *Repository) AdminAllReservations(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminDashboard ¶
func (repository *Repository) AdminDashboard(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminDeleteReservation ¶
func (repository *Repository) AdminDeleteReservation(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminNewReservation ¶
func (repository *Repository) AdminNewReservation(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminPostReservationsCalendar ¶
func (repository *Repository) AdminPostReservationsCalendar(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminPostShowReservation ¶
func (repository *Repository) AdminPostShowReservation(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminProcessReservation ¶
func (repository *Repository) AdminProcessReservation(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminReservationsCalendar ¶
func (repository *Repository) AdminReservationsCalendar(w http.ResponseWriter, r *http.Request)
func (*Repository) AdminShowReservation ¶
func (repository *Repository) AdminShowReservation(w http.ResponseWriter, r *http.Request)
func (*Repository) Availability ¶
func (repository *Repository) Availability(w http.ResponseWriter, r *http.Request)
Availability is the handler for the search availability page
func (*Repository) AvailabilityJSON ¶
func (repository *Repository) AvailabilityJSON(w http.ResponseWriter, r *http.Request)
AvailabilityJSON is the handler for the search availability
func (*Repository) BookRoom ¶
func (repository *Repository) BookRoom(w http.ResponseWriter, r *http.Request)
BookRoom takes URL parameters, builds a sessional variable, and takes user to make res screen
func (*Repository) ChooseRoom ¶
func (repository *Repository) ChooseRoom(w http.ResponseWriter, r *http.Request)
func (*Repository) Contact ¶
func (repository *Repository) Contact(w http.ResponseWriter, r *http.Request)
Contact is the handler for the contact page
func (*Repository) Generals ¶
func (repository *Repository) Generals(w http.ResponseWriter, r *http.Request)
Generals is the handler for the generals page
func (*Repository) Home ¶
func (repository *Repository) Home(w http.ResponseWriter, r *http.Request)
Home is the handler for the home page
func (*Repository) Logout ¶
func (repository *Repository) Logout(w http.ResponseWriter, r *http.Request)
func (*Repository) Majors ¶
func (repository *Repository) Majors(w http.ResponseWriter, r *http.Request)
Majors is the handler for the majors page
func (*Repository) PostAvailability ¶
func (repository *Repository) PostAvailability(w http.ResponseWriter, r *http.Request)
PostAvailability is the handler for the search availability
func (*Repository) PostLogin ¶
func (repository *Repository) PostLogin(w http.ResponseWriter, r *http.Request)
PostLogin is the handler for the login
func (*Repository) PostReservation ¶
func (repository *Repository) PostReservation(w http.ResponseWriter, r *http.Request)
PostReservation handles the posting of a reservation form
func (*Repository) Reservation ¶
func (repository *Repository) Reservation(w http.ResponseWriter, r *http.Request)
Reservation is the handler for the reservation page
func (*Repository) ReservationSummary ¶
func (repository *Repository) ReservationSummary(w http.ResponseWriter, r *http.Request)
func (*Repository) ShowLogin ¶
func (repository *Repository) ShowLogin(w http.ResponseWriter, r *http.Request)
ShowLogin is the handler for the login page