controller

package
v0.0.0-...-c391c35 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSubject

func CreateSubject(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

CreateSubject creates a new subject and serves the list of all subjects.

func CreateSubjects

func CreateSubjects(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

CreateSubjects creates multiple subjects from json upload and serves the list of all subjects.

func CreateTeacher

func CreateTeacher(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

CreateTeacher creates a new teacher and serves the list of all teachers.

func CreateTeachers

func CreateTeachers(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

CreateTeachers creates multiple teachers from json upload and serves the list of all teachers.

func DeleteSubject

func DeleteSubject(w http.ResponseWriter, r *http.Request, params httprouter.Params)

DeleteSubject deletes a subject and serves nothing (empty 200 OK response).

func DeleteTeacher

func DeleteTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params)

DeleteTeacher deletes a teacher and serves nothing (empty 200 OK response).

func EditSubject

func EditSubject(w http.ResponseWriter, r *http.Request, params httprouter.Params)

EditSubject serves a form to edit a subject.

func EditTeacher

func EditTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params)

EditTeacher serves a form to edit a teacher.

func GetLogin

func GetLogin(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func GetPlan

func GetPlan(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func GetSignup

func GetSignup(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func GetSubject

func GetSubject(w http.ResponseWriter, r *http.Request, params httprouter.Params)

GetSubject serves one subject.

func GetSubjects

func GetSubjects(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

GetSubjects serves the list of all subjects.

func GetTeacher

func GetTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params)

GetTeacher serves one teacher.

func GetTeachers

func GetTeachers(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

GetTeachers serves the list of all teachers.

func Index

func NewSubject

func NewSubject(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

NewSubject serves the form to create a new subject.

func NewSubjects

func NewSubjects(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

NewSubjects serves the upload form to submit multiple subject records.

func NewTeacher

func NewTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params)

NewTeacher serves the form to create a new teacher.

func NewTeachers

func NewTeachers(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

NewTeachers serves the upload form to submit multiple teacher records.

func PostLogin

func PostLogin(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func PostPlan

func PostPlan(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func PostSignup

func PostSignup(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

func UpdateSubject

func UpdateSubject(w http.ResponseWriter, r *http.Request, params httprouter.Params)

UpdateSubject updates a subject with the uploaded information.

func UpdateTeacher

func UpdateTeacher(w http.ResponseWriter, r *http.Request, params httprouter.Params)

UpdateTeacher updates a teacher with the uploaded information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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