controller

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2019 License: NCSA Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCurrentMentorRegistration

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

Endpoint to create the registration for the current mentor

func CreateCurrentUserRegistration

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

Endpoint to create the registration for the current user. On successful creation, adds user to a "registered" mailing list, and sends the user a confirmation mail.

func GetAllCurrentRegistrations

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

Endpoint to get all registrations (attendee, mentor) for the current user. If registrations could not be found for either attendee or mentor, that field is set to nil/null.

func GetAllRegistrations

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

Endpoint to get all registrations (attendee, mentor) for the specified user. If registrations could not be found for either attendee or mentor, that field is set to nil.

func GetCurrentMentorRegistration

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

Endpoint to get the registration for the current mentor

func GetCurrentUserRegistration

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

Endpoint to get the registration for the current user

func GetFilteredUserRegistrations

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

Endpoint to get registrations based on filters

func GetMentorRegistration

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

Endpoint to get the registration for a specified mentor

func GetStats

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

Endpoint to get registration stats

func GetUserRegistration

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

Endpoint to get the registration for a specified user

func SetupController

func SetupController(route *mux.Route)

func UpdateCurrentMentorRegistration

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

Endpoint to update the registration for the current mentor

func UpdateCurrentUserRegistration

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

Endpoint to update the registration for the current user. On successful update, sends the user a confirmation mail.

Types

This section is empty.

Jump to

Keyboard shortcuts

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