Documentation ¶
Index ¶
- type BlocksPostgresRepository
- func (repository *BlocksPostgresRepository) CanStudentSubmitToTestBlock(studentUUID string, testBlockUUID string) (bool, error)
- func (repository *BlocksPostgresRepository) DeleteMarkdownBlock(blockUUID string) (err error)
- func (repository *BlocksPostgresRepository) DeleteTestBlock(blockUUID string) (err error)
- func (repository *BlocksPostgresRepository) DoesTeacherOwnsMarkdownBlock(teacherUUID string, blockUUID string) (bool, error)
- func (repository *BlocksPostgresRepository) DoesTeacherOwnsTestBlock(teacherUUID string, blockUUID string) (bool, error)
- func (repository *BlocksPostgresRepository) GetMarkdownBlockByUUID(blockUUID string) (markdownBlock *laboratoriesEntities.MarkdownBlock, err error)
- func (repository *BlocksPostgresRepository) GetTestArchiveUUIDFromTestBlockUUID(blockUUID string) (uuid string, err error)
- func (repository *BlocksPostgresRepository) GetTestBlockByUUID(blockUUID string) (testBlock *laboratoriesEntities.TestBlock, err error)
- func (repository *BlocksPostgresRepository) GetTestBlockLaboratoryUUID(blockUUID string) (laboratoryUUID string, err error)
- func (repository *BlocksPostgresRepository) SwapBlocks(firstBlockUUID, secondBlockUUID string) (err error)
- func (repository *BlocksPostgresRepository) UpdateMarkdownBlockContent(blockUUID string, content string) (err error)
- func (repository *BlocksPostgresRepository) UpdateTestBlock(dto *dtos.UpdateTestBlockDTO) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlocksPostgresRepository ¶
type BlocksPostgresRepository struct { Connection *sql.DB StaticFilesRepository staticFilesDefinitions.StaticFilesRepository }
func GetBlocksPostgresRepositoryInstance ¶
func GetBlocksPostgresRepositoryInstance() *BlocksPostgresRepository
func (*BlocksPostgresRepository) CanStudentSubmitToTestBlock ¶ added in v0.41.0
func (repository *BlocksPostgresRepository) CanStudentSubmitToTestBlock(studentUUID string, testBlockUUID string) (bool, error)
func (*BlocksPostgresRepository) DeleteMarkdownBlock ¶ added in v0.39.0
func (repository *BlocksPostgresRepository) DeleteMarkdownBlock(blockUUID string) (err error)
func (*BlocksPostgresRepository) DeleteTestBlock ¶ added in v0.39.0
func (repository *BlocksPostgresRepository) DeleteTestBlock(blockUUID string) (err error)
func (*BlocksPostgresRepository) DoesTeacherOwnsMarkdownBlock ¶
func (repository *BlocksPostgresRepository) DoesTeacherOwnsMarkdownBlock(teacherUUID string, blockUUID string) (bool, error)
func (*BlocksPostgresRepository) DoesTeacherOwnsTestBlock ¶ added in v0.37.0
func (repository *BlocksPostgresRepository) DoesTeacherOwnsTestBlock(teacherUUID string, blockUUID string) (bool, error)
func (*BlocksPostgresRepository) GetMarkdownBlockByUUID ¶ added in v0.47.0
func (repository *BlocksPostgresRepository) GetMarkdownBlockByUUID(blockUUID string) (markdownBlock *laboratoriesEntities.MarkdownBlock, err error)
func (*BlocksPostgresRepository) GetTestArchiveUUIDFromTestBlockUUID ¶ added in v0.37.0
func (repository *BlocksPostgresRepository) GetTestArchiveUUIDFromTestBlockUUID(blockUUID string) (uuid string, err error)
func (*BlocksPostgresRepository) GetTestBlockByUUID ¶ added in v0.47.0
func (repository *BlocksPostgresRepository) GetTestBlockByUUID(blockUUID string) (testBlock *laboratoriesEntities.TestBlock, err error)
func (*BlocksPostgresRepository) GetTestBlockLaboratoryUUID ¶ added in v0.42.1
func (repository *BlocksPostgresRepository) GetTestBlockLaboratoryUUID(blockUUID string) (laboratoryUUID string, err error)
func (*BlocksPostgresRepository) SwapBlocks ¶ added in v0.47.0
func (repository *BlocksPostgresRepository) SwapBlocks(firstBlockUUID, secondBlockUUID string) (err error)
func (*BlocksPostgresRepository) UpdateMarkdownBlockContent ¶
func (repository *BlocksPostgresRepository) UpdateMarkdownBlockContent(blockUUID string, content string) (err error)
func (*BlocksPostgresRepository) UpdateTestBlock ¶ added in v0.37.0
func (repository *BlocksPostgresRepository) UpdateTestBlock(dto *dtos.UpdateTestBlockDTO) (err error)
Click to show internal directories.
Click to hide internal directories.