Documentation ¶
Index ¶
- func AddEvent(w http.ResponseWriter, r *http.Request)
- func BookEvent(w http.ResponseWriter, r *http.Request)
- func DeleteEventFunction(w http.ResponseWriter, r *http.Request)
- func DeleteMyAccount(w http.ResponseWriter, r *http.Request)
- func GoCicerone(w http.ResponseWriter, r *http.Request)
- func HomeFunction(w http.ResponseWriter, r *http.Request)
- func LoginFunc(w http.ResponseWriter, r *http.Request)
- func LogoutFunc(w http.ResponseWriter, r *http.Request)
- func MyProfile(w http.ResponseWriter, r *http.Request)
- func PopulateTemplates()
- func RequiresCicerone(handler func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
- func RequiresLogin(handler func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
- func SearchEvent(w http.ResponseWriter, r *http.Request)
- func ShowEvent(w http.ResponseWriter, r *http.Request)
- func SignUpFunc(w http.ResponseWriter, r *http.Request)
- func SwapInfo(u types.User) (e error)
- func UpdateAccountInfo(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteEventFunction ¶
func DeleteEventFunction(w http.ResponseWriter, r *http.Request)
func DeleteMyAccount ¶
func DeleteMyAccount(w http.ResponseWriter, r *http.Request)
func GoCicerone ¶
func GoCicerone(w http.ResponseWriter, r *http.Request)
func HomeFunction ¶
func HomeFunction(w http.ResponseWriter, r *http.Request)
TODO: add ability to filter displayed events
func LoginFunc ¶
func LoginFunc(w http.ResponseWriter, r *http.Request)
LoginFunc implements the login functionality, will add a cookie to the cookie store for managing authentication
func LogoutFunc ¶
func LogoutFunc(w http.ResponseWriter, r *http.Request)
LogoutFunc Implements the logout functionality. WIll delete the session information from the cookie store
func PopulateTemplates ¶
func PopulateTemplates()
PopulateTemplates is used to parse all templates present in the templates folder
func RequiresCicerone ¶
func RequiresCicerone(handler func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
func RequiresLogin ¶
func RequiresLogin(handler func(w http.ResponseWriter, r *http.Request)) func(w http.ResponseWriter, r *http.Request)
RequiresLogin is a middleware which will be used for each httpHandler to check if there is any active session
func SearchEvent ¶
func SearchEvent(w http.ResponseWriter, r *http.Request)
func SignUpFunc ¶
func SignUpFunc(w http.ResponseWriter, r *http.Request)
func UpdateAccountInfo ¶
func UpdateAccountInfo(w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.