Documentation
¶
Index ¶
Constants ¶
View Source
const ( SuccessToCreateCourse = "course created with success" SuccessToGetCourse = "course found with success" ErrorToCreateCourse = "error to create and process the request" ErrorToGetCourse = "error to get course by id" CourseNotFound = "course with id %d wasn´t found" FieldOutlineError = "Field outline cannot be empty" FieldDescriptionError = "Field description cannot be empty" ErrorToGetListOfCourses = "error to get list of courses" SuccessToListCourses = "list of courses retrieved successfully" )
View Source
const ( SuccessToCreateStudent = "student created with success" SuccessToGetStudent = "student found with success" ErrorToCreateStudent = "error to create and process the request" ErrorToGetStudent = "error to get student by id" StudentNotFound = "student with id %d wasn´t found" // FieldNameError = "Field name cannot be empty" ErrorToGetListOfStudents = "error to get list of students" SuccessToListStudents = "list of students retrieved successfully" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Course ¶
type Course struct {
CourseService input.ICourseService
LoggerSugar *zap.SugaredLogger
}
func (*Course) GetCourses ¶
func (c *Course) GetCourses(w http.ResponseWriter, r *http.Request)
type CourseRequest ¶
type CourseResponse ¶
type Generic ¶
type Generic struct {
LoggerSugar *zap.SugaredLogger
}
func (*Generic) HealthCheck ¶
func (h *Generic) HealthCheck(w http.ResponseWriter, r *http.Request)
type Student ¶
type Student struct {
StudentService input.IStudentService
LoggerSugar *zap.SugaredLogger
}
func (*Student) GetStudents ¶
func (c *Student) GetStudents(w http.ResponseWriter, r *http.Request)
type StudentRequest ¶
Click to show internal directories.
Click to hide internal directories.