implementations

package
v0.42.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlocksPostgresRepository

type BlocksPostgresRepository struct {
	Connection *sql.DB
}

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) GetTestArchiveUUIDFromTestBlockUUID added in v0.37.0

func (repository *BlocksPostgresRepository) GetTestArchiveUUIDFromTestBlockUUID(blockUUID string) (uuid string, err error)

func (*BlocksPostgresRepository) OverwriteTestsArchive added in v0.37.0

func (repository *BlocksPostgresRepository) OverwriteTestsArchive(uuid string, file *multipart.File) (err error)

func (*BlocksPostgresRepository) SaveTestsArchive added in v0.36.0

func (repository *BlocksPostgresRepository) SaveTestsArchive(file *multipart.File) (uuid 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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL