views

package
v0.0.0-...-5ac18db Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEvent

func AddEvent(w http.ResponseWriter, r *http.Request)

func BookEvent

func BookEvent(w http.ResponseWriter, r *http.Request)

TODO: book event function

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 MyProfile

func MyProfile(w http.ResponseWriter, r *http.Request)

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 ShowEvent

func ShowEvent(w http.ResponseWriter, r *http.Request)

func SignUpFunc

func SignUpFunc(w http.ResponseWriter, r *http.Request)

func SwapInfo

func SwapInfo(u types.User) (e error)

func UpdateAccountInfo

func UpdateAccountInfo(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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