Documentation ¶
Index ¶
- type CoursesRepository
- func (r *CoursesRepository) AddCourse(ctx context.Context, crs *course.Course) error
- func (r *CoursesRepository) FindAllCourses(ctx context.Context, academic course.Academic, ...) ([]app.CommonCourse, error)
- func (r *CoursesRepository) FindAllTasks(ctx context.Context, academic course.Academic, courseID string, ...) ([]app.GeneralTask, error)
- func (r *CoursesRepository) FindCourse(ctx context.Context, academic course.Academic, courseID string) (app.CommonCourse, error)
- func (r *CoursesRepository) FindTask(ctx context.Context, academic course.Academic, courseID string, taskNumber int) (app.SpecificTask, error)
- func (r *CoursesRepository) GetCourse(ctx context.Context, courseID string) (*course.Course, error)
- func (r *CoursesRepository) RemoveAllCourses(ctx context.Context) error
- func (r *CoursesRepository) UpdateCourse(ctx context.Context, courseID string, updateFn command.UpdateFunction) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoursesRepository ¶
type CoursesRepository struct {
// contains filtered or unexported fields
}
func NewCoursesRepository ¶
func NewCoursesRepository(db *mongo.Database) *CoursesRepository
func (*CoursesRepository) FindAllCourses ¶
func (r *CoursesRepository) FindAllCourses( ctx context.Context, academic course.Academic, params query.CoursesFilterParams, ) ([]app.CommonCourse, error)
func (*CoursesRepository) FindAllTasks ¶
func (r *CoursesRepository) FindAllTasks( ctx context.Context, academic course.Academic, courseID string, filterParams query.TasksFilterParams, ) ([]app.GeneralTask, error)
func (*CoursesRepository) FindCourse ¶
func (r *CoursesRepository) FindCourse( ctx context.Context, academic course.Academic, courseID string, ) (app.CommonCourse, error)
func (*CoursesRepository) FindTask ¶
func (r *CoursesRepository) FindTask( ctx context.Context, academic course.Academic, courseID string, taskNumber int, ) (app.SpecificTask, error)
func (*CoursesRepository) RemoveAllCourses ¶
func (r *CoursesRepository) RemoveAllCourses(ctx context.Context) error
func (*CoursesRepository) UpdateCourse ¶
func (r *CoursesRepository) UpdateCourse(ctx context.Context, courseID string, updateFn command.UpdateFunction) error
Click to show internal directories.
Click to hide internal directories.