Documentation ¶
Index ¶
- type LaboratoriesPostgresRepository
- func (repository *LaboratoriesPostgresRepository) CreateMarkdownBlock(laboratoryUUID string) (blockUUID string, err error)
- func (repository *LaboratoriesPostgresRepository) CreateTestBlock(dto *dtos.CreateTestBlockDTO) (blockUUID string, err error)
- func (repository *LaboratoriesPostgresRepository) DoesTeacherOwnLaboratory(teacherUUID string, laboratoryUUID string) (bool, error)
- func (repository *LaboratoriesPostgresRepository) GetLaboratoryByUUID(dto *dtos.GetLaboratoryDTO) (laboratory *entities.Laboratory, err error)
- func (repository *LaboratoriesPostgresRepository) GetLaboratoryInformationByUUID(uuid string) (laboratory *dtos.LaboratoryDetailsDTO, err error)
- func (repository *LaboratoriesPostgresRepository) GetStudentSubmissions(laboratoryUUID string, studentUUID string) (submissions []*dtos.SummarizedStudentSubmissionDTO, err error)
- func (repository *LaboratoriesPostgresRepository) GetStudentsProgress(laboratoryUUID string) (progress []*dtos.SummarizedStudentProgressDTO, err error)
- func (repository *LaboratoriesPostgresRepository) GetTotalTestBlocks(laboratoryUUID string) (total int, err error)
- func (repository *LaboratoriesPostgresRepository) SaveLaboratory(dto *dtos.CreateLaboratoryDTO) (laboratory *entities.Laboratory, err error)
- func (repository *LaboratoriesPostgresRepository) UpdateLaboratory(dto *dtos.UpdateLaboratoryDTO) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LaboratoriesPostgresRepository ¶
func GetLaboratoriesPostgresRepositoryInstance ¶
func GetLaboratoriesPostgresRepositoryInstance() *LaboratoriesPostgresRepository
func (*LaboratoriesPostgresRepository) CreateMarkdownBlock ¶ added in v0.32.0
func (repository *LaboratoriesPostgresRepository) CreateMarkdownBlock(laboratoryUUID string) (blockUUID string, err error)
func (*LaboratoriesPostgresRepository) CreateTestBlock ¶ added in v0.36.0
func (repository *LaboratoriesPostgresRepository) CreateTestBlock(dto *dtos.CreateTestBlockDTO) (blockUUID string, err error)
func (*LaboratoriesPostgresRepository) DoesTeacherOwnLaboratory ¶ added in v0.50.0
func (repository *LaboratoriesPostgresRepository) DoesTeacherOwnLaboratory(teacherUUID string, laboratoryUUID string) (bool, error)
DoesTeacherOwnLaboratory returns true if the teacher owns the laboratory and throws an error if the laboratory does not exist
func (*LaboratoriesPostgresRepository) GetLaboratoryByUUID ¶
func (repository *LaboratoriesPostgresRepository) GetLaboratoryByUUID(dto *dtos.GetLaboratoryDTO) (laboratory *entities.Laboratory, err error)
func (*LaboratoriesPostgresRepository) GetLaboratoryInformationByUUID ¶ added in v0.45.0
func (repository *LaboratoriesPostgresRepository) GetLaboratoryInformationByUUID(uuid string) (laboratory *dtos.LaboratoryDetailsDTO, err error)
func (*LaboratoriesPostgresRepository) GetStudentSubmissions ¶ added in v0.53.0
func (repository *LaboratoriesPostgresRepository) GetStudentSubmissions(laboratoryUUID string, studentUUID string) (submissions []*dtos.SummarizedStudentSubmissionDTO, err error)
GetStudentSubmissions returns the submissions of a student in a laboratory
func (*LaboratoriesPostgresRepository) GetStudentsProgress ¶ added in v0.44.0
func (repository *LaboratoriesPostgresRepository) GetStudentsProgress(laboratoryUUID string) (progress []*dtos.SummarizedStudentProgressDTO, err error)
func (*LaboratoriesPostgresRepository) GetTotalTestBlocks ¶ added in v0.44.0
func (repository *LaboratoriesPostgresRepository) GetTotalTestBlocks(laboratoryUUID string) (total int, err error)
func (*LaboratoriesPostgresRepository) SaveLaboratory ¶
func (repository *LaboratoriesPostgresRepository) SaveLaboratory(dto *dtos.CreateLaboratoryDTO) (laboratory *entities.Laboratory, err error)
func (*LaboratoriesPostgresRepository) UpdateLaboratory ¶ added in v0.30.0
func (repository *LaboratoriesPostgresRepository) UpdateLaboratory(dto *dtos.UpdateLaboratoryDTO) error
Click to show internal directories.
Click to hide internal directories.