Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockRepository ¶
type BlockRepository interface { // Update the markdown text of a markdown block UpdateMarkdownBlockContent(blockUUID string, content string) (err error) // Check blocks ownership DoesTeacherOwnsMarkdownBlock(teacherUUID string, blockUUID string) (bool, error) DoesTeacherOwnsTestBlock(teacherUUID string, blockUUID string) (bool, error) // Check blocks permissions CanStudentSubmitToTestBlock(studentUUID string, testBlockUUID string) (bool, error) // Create a new test block SaveTestsArchive(file *multipart.File) (uuid string, err error) // Get the UUID of the `zip` archive saved in the static files microservice GetTestArchiveUUIDFromTestBlockUUID(blockUUID string) (uuid string, err error) // Overwrite the `zip` archive saved in the static files microservice OverwriteTestsArchive(uuid string, file *multipart.File) (err error) // Update the test block information in the database UpdateTestBlock(*dtos.UpdateTestBlockDTO) (err error) // Delete blocks DeleteMarkdownBlock(blockUUID string) (err error) DeleteTestBlock(blockUUID string) (err error) }
Click to show internal directories.
Click to hide internal directories.