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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEventFavorite

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

Endpoint to add an event favorite for the current user

func CreateEvent

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

Endpoint to create an event

func DeleteEvent

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

Endpoint to delete an event with the specified id. It removes the event from the event trackers, and every user's tracker. On successful deletion, it returns the event that was deleted.

func GetAllEvents

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

Endpoint to get all events

func GetEvent

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

Endpoint to get the event with the specified id

func GetEventFavorites

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

Endpoint to get the current user's event favorites

func GetEventTrackingInfo

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

Endpoint to get tracking info by event

func GetStats

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

Endpoint to get event stats

func GetUserTrackingInfo

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

Endpoint to get tracking info by user

func MarkUserAsAttendingEvent

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

Mark a user as attending an event

func RemoveEventFavorite

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

Endpoint to remove an event favorite for the current user

func SetupController

func SetupController(route *mux.Route)

func UpdateEvent

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

Endpoint to update an event

Types

This section is empty.

Jump to

Keyboard shortcuts

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