Documentation ¶
Index ¶
- type CourseService
- func (s *CourseService) HandleCreateCourse(w http.ResponseWriter, r *http.Request)
- func (s *CourseService) HandleDeleteCourseByTitle(w http.ResponseWriter, r *http.Request)
- func (s *CourseService) HandleGetAllCourses(w http.ResponseWriter, r *http.Request)
- func (s *CourseService) HandleGetCourseByTitle(w http.ResponseWriter, r *http.Request)
- func (s *CourseService) HandleUpdateCourseByTitle(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CourseService ¶
type CourseService struct {
Collection *mongo.Collection
}
func (*CourseService) HandleCreateCourse ¶
func (s *CourseService) HandleCreateCourse(w http.ResponseWriter, r *http.Request)
func (*CourseService) HandleDeleteCourseByTitle ¶
func (s *CourseService) HandleDeleteCourseByTitle(w http.ResponseWriter, r *http.Request)
func (*CourseService) HandleGetAllCourses ¶
func (s *CourseService) HandleGetAllCourses(w http.ResponseWriter, r *http.Request)
func (*CourseService) HandleGetCourseByTitle ¶
func (s *CourseService) HandleGetCourseByTitle(w http.ResponseWriter, r *http.Request)
func (*CourseService) HandleUpdateCourseByTitle ¶
func (s *CourseService) HandleUpdateCourseByTitle(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.