controller

package
v0.0.0-...-291b6b4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2016 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AboutGET

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

Displays the About page

func ClockinCreateGET

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

ClockinCreateGET displays the clockin creation page

func ClockinCreatePOST

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

ClockinCreatePOST handles the note creation form submission

func ClockinsByStudentIdGET

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

ClockinsByStudentIdJsonGET displays the note update page

func ClockinsByStudentIdJsonGET

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

ClockinByStudentIdJsonGET displays the note update page

func Error404

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

Error404 handles 404 - Page Not Found

func Error500

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

Error500 handles 500 - Internal Server Error

func Index

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

Displays the default home page

func InvalidToken

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

InvalidToken handles CSRF attacks

func List

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

Displays the students list page

func LoginGET

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

func LoginPOST

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

func Logout

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

func NotepadCreateGET

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

NotepadCreateGET displays the note creation page

func NotepadCreatePOST

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

NotepadCreatePOST handles the note creation form submission

func NotepadDeleteGET

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

NotepadDeleteGET handles the note deletion

func NotepadReadGET

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

NotepadReadGET displays the notes in the notepad

func NotepadUpdateGET

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

NotepadUpdateGET displays the note update page

func NotepadUpdatePOST

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

NotepadUpdatePOST handles the note update form submission

func RegisterGET

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

func RegisterPOST

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

func RegisterStudentGET

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

func RegisterStudentPOST

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

func Static

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

Static maps static files

func StudentDeleteGET

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

StudentDeleteGET handles the note deletion

func StudentUpdateGET

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

NotepadUpdateGET displays the note update page

func StudentUpdatePOST

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

StudentUpdatePOST handles the student update form submission

func StudentsJsonGET

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

Return the JSON of all the students in the database

Types

This section is empty.

Jump to

Keyboard shortcuts

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