Documentation ¶
Index ¶
- type RubricsPostgresRepository
- func (repository *RubricsPostgresRepository) AddCriteriaToObjective(dto *dtos.AddCriteriaToObjectiveDTO) (criteriaUUID string, err error)
- func (repository *RubricsPostgresRepository) AddObjectiveToRubric(rubricUUID string, objectiveDescription string) (objectiveUUID string, err error)
- func (repository *RubricsPostgresRepository) Delete(uuid string) (err error)
- func (repository *RubricsPostgresRepository) DeleteCriteria(criteriaUUID string) (err error)
- func (repository *RubricsPostgresRepository) DeleteObjective(objectiveUUID string) (err error)
- func (repository *RubricsPostgresRepository) DoesObjectiveHaveCriteria(objectiveUUID string, criteriaUUID string) (bool, error)
- func (repository *RubricsPostgresRepository) DoesRubricHaveObjective(rubricUUID string, objectiveUUID string) (bool, error)
- func (repository *RubricsPostgresRepository) DoesTeacherOwnCriteria(teacherUUID string, criteriaUUID string) (bool, error)
- func (repository *RubricsPostgresRepository) DoesTeacherOwnObjective(teacherUUID string, objectiveUUID string) (bool, error)
- func (repository *RubricsPostgresRepository) DoesTeacherOwnRubric(teacherUUID string, rubricUUID string) (bool, error)
- func (repository *RubricsPostgresRepository) GetAllCreatedByTeacher(teacherUUID string) ([]*dtos.CreatedRubricDTO, error)
- func (repository *RubricsPostgresRepository) GetByUUID(uuid string) (rubric *entities.Rubric, err error)
- func (repository *RubricsPostgresRepository) Save(dto *dtos.CreateRubricDTO) (rubric *entities.Rubric, err error)
- func (repository *RubricsPostgresRepository) UpdateCriteria(dto *dtos.UpdateCriteriaDTO) (err error)
- func (repository *RubricsPostgresRepository) UpdateName(dto *dtos.UpdateRubricNameDTO) (err error)
- func (repository *RubricsPostgresRepository) UpdateObjective(dto *dtos.UpdateObjectiveDTO) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RubricsPostgresRepository ¶
func GetRubricsPgRepository ¶
func GetRubricsPgRepository() *RubricsPostgresRepository
func (*RubricsPostgresRepository) AddCriteriaToObjective ¶ added in v0.23.0
func (repository *RubricsPostgresRepository) AddCriteriaToObjective(dto *dtos.AddCriteriaToObjectiveDTO) (criteriaUUID string, err error)
func (*RubricsPostgresRepository) AddObjectiveToRubric ¶ added in v0.22.0
func (repository *RubricsPostgresRepository) AddObjectiveToRubric(rubricUUID string, objectiveDescription string) (objectiveUUID string, err error)
func (*RubricsPostgresRepository) Delete ¶ added in v0.43.0
func (repository *RubricsPostgresRepository) Delete(uuid string) (err error)
func (*RubricsPostgresRepository) DeleteCriteria ¶ added in v0.28.0
func (repository *RubricsPostgresRepository) DeleteCriteria(criteriaUUID string) (err error)
func (*RubricsPostgresRepository) DeleteObjective ¶ added in v0.27.0
func (repository *RubricsPostgresRepository) DeleteObjective(objectiveUUID string) (err error)
func (*RubricsPostgresRepository) DoesObjectiveHaveCriteria ¶ added in v0.50.0
func (repository *RubricsPostgresRepository) DoesObjectiveHaveCriteria(objectiveUUID string, criteriaUUID string) (bool, error)
DoesObjectiveHaveCriteria checks if the criteria belongs to the given objective
func (*RubricsPostgresRepository) DoesRubricHaveObjective ¶ added in v0.50.0
func (repository *RubricsPostgresRepository) DoesRubricHaveObjective(rubricUUID string, objectiveUUID string) (bool, error)
DoesRubricHaveObjective checks if the objective belongs to the given rubric
func (*RubricsPostgresRepository) DoesTeacherOwnCriteria ¶ added in v0.23.0
func (repository *RubricsPostgresRepository) DoesTeacherOwnCriteria(teacherUUID string, criteriaUUID string) (bool, error)
func (*RubricsPostgresRepository) DoesTeacherOwnObjective ¶ added in v0.23.0
func (repository *RubricsPostgresRepository) DoesTeacherOwnObjective(teacherUUID string, objectiveUUID string) (bool, error)
func (*RubricsPostgresRepository) DoesTeacherOwnRubric ¶ added in v0.23.0
func (repository *RubricsPostgresRepository) DoesTeacherOwnRubric(teacherUUID string, rubricUUID string) (bool, error)
func (*RubricsPostgresRepository) GetAllCreatedByTeacher ¶ added in v0.20.0
func (repository *RubricsPostgresRepository) GetAllCreatedByTeacher(teacherUUID string) ([]*dtos.CreatedRubricDTO, error)
func (*RubricsPostgresRepository) GetByUUID ¶
func (repository *RubricsPostgresRepository) GetByUUID(uuid string) (rubric *entities.Rubric, err error)
func (*RubricsPostgresRepository) Save ¶
func (repository *RubricsPostgresRepository) Save(dto *dtos.CreateRubricDTO) (rubric *entities.Rubric, err error)
func (*RubricsPostgresRepository) UpdateCriteria ¶ added in v0.25.0
func (repository *RubricsPostgresRepository) UpdateCriteria(dto *dtos.UpdateCriteriaDTO) (err error)
func (*RubricsPostgresRepository) UpdateName ¶ added in v0.26.0
func (repository *RubricsPostgresRepository) UpdateName(dto *dtos.UpdateRubricNameDTO) (err error)
func (*RubricsPostgresRepository) UpdateObjective ¶ added in v0.24.0
func (repository *RubricsPostgresRepository) UpdateObjective(dto *dtos.UpdateObjectiveDTO) (err error)
Click to show internal directories.
Click to hide internal directories.