Documentation ¶
Index ¶
- func AuthHandler(w http.ResponseWriter, r *http.Request)
- func GetAllCourses(w http.ResponseWriter, r *http.Request)
- func GetAllInstructors(w http.ResponseWriter, r *http.Request)
- func GetAllUsers(w http.ResponseWriter, r *http.Request)
- func GetCoursesByID(w http.ResponseWriter, r *http.Request)
- func GetCoursesWithInstructorAndAttendee(w http.ResponseWriter, r *http.Request)
- func GetInstructorByID(w http.ResponseWriter, r *http.Request)
- func GetUserByID(w http.ResponseWriter, r *http.Request)
- type Course
- type Instructor
- type Server
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthHandler ¶
func AuthHandler(w http.ResponseWriter, r *http.Request)
func GetAllCourses ¶
func GetAllCourses(w http.ResponseWriter, r *http.Request)
func GetAllInstructors ¶
func GetAllInstructors(w http.ResponseWriter, r *http.Request)
func GetAllUsers ¶
func GetAllUsers(w http.ResponseWriter, r *http.Request)
func GetCoursesByID ¶
func GetCoursesByID(w http.ResponseWriter, r *http.Request)
func GetCoursesWithInstructorAndAttendee ¶
func GetCoursesWithInstructorAndAttendee(w http.ResponseWriter, r *http.Request)
func GetInstructorByID ¶
func GetInstructorByID(w http.ResponseWriter, r *http.Request)
func GetUserByID ¶
func GetUserByID(w http.ResponseWriter, r *http.Request)
Types ¶
type Course ¶
type Course struct { ID int `json:"id"` InstructorID int `json:"instructor_id"` Name string `json:"name"` Topics []string `json:"topics"` Attendees []int `json:"attendees"` }
Course is course being taught
type Instructor ¶
type Instructor struct { ID int `json:"id"` Name string `json:"name"` Email string `json:"email"` Company string `json:"company"` Expertise []string `json:"expertise"` }
Instructor type represent a instructor for a course
Click to show internal directories.
Click to hide internal directories.