handlers

package
v1.0.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(r *Repository)

NewHandlers sets the repository for the handlers

Types

type Repository

type Repository struct {
	App *config.AppConfig
}

Repository is the repository type

var Repo *Repository

Repo the repository used by the handlers

func NewRepo

func NewRepo(a *config.AppConfig) *Repository

NewRepo creates a new repository

func (*Repository) About

func (m *Repository) About(w http.ResponseWriter, r *http.Request)

About is the handler for the about page

func (*Repository) Contact

func (m *Repository) Contact(w http.ResponseWriter, r *http.Request)

Contact is the handler for the caontact page

func (*Repository) Couple

func (m *Repository) Couple(w http.ResponseWriter, r *http.Request)

Couple is the handler for the couple page

func (*Repository) Eremite

func (m *Repository) Eremite(w http.ResponseWriter, r *http.Request)

Eremite is the handler for the eremite page

func (*Repository) Family

func (m *Repository) Family(w http.ResponseWriter, r *http.Request)

Family is the handler for the family page

func (*Repository) Home

func (m *Repository) Home(w http.ResponseWriter, r *http.Request)

Home is the handler for the home page

func (*Repository) MakeReservation

func (m *Repository) MakeReservation(w http.ResponseWriter, r *http.Request)

MakeReservation is the handler for the make-reservation page

func (*Repository) PostMakeReservation added in v1.0.66

func (m *Repository) PostMakeReservation(w http.ResponseWriter, r *http.Request)

PostMakeReservation is the POST request handler for the reservation form

func (*Repository) PostReservation

func (m *Repository) PostReservation(w http.ResponseWriter, r *http.Request)

PostReservation is the handler for the reservation page and POST requests

func (*Repository) Reservation

func (m *Repository) Reservation(w http.ResponseWriter, r *http.Request)

Reservation is the handler for the reservation page

func (*Repository) ReservationJSON

func (m *Repository) ReservationJSON(w http.ResponseWriter, r *http.Request)

ReservationJSON is the handler for reservation-json and returns JSON

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL