Documentation ¶
Index ¶
- type SubmissionUseCases
- func (useCases *SubmissionUseCases) CanStudentSubmitToTestBlock(studentUUID string, testBlockUUID string) (bool, error)
- func (useCases *SubmissionUseCases) GetSubmissionArchive(dto *dtos.GetSubmissionArchiveDTO) ([]byte, error)
- func (useCases *SubmissionUseCases) GetSubmissionStatus(studentUUID, testBlockUUID string) (*dtos.SubmissionStatusUpdateDTO, error)
- func (useCases *SubmissionUseCases) SaveSubmission(dto *dtos.CreateSubmissionDTO) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubmissionUseCases ¶
type SubmissionUseCases struct { StaticFilesRepository staticFilesDefinitions.StaticFilesRepository LaboratoriesRepository laboratoriesDefinitions.LaboratoriesRepository BlocksRepository blocksDefinitions.BlockRepository SubmissionsRepository definitions.SubmissionsRepository SubmissionsQueueManager definitions.SubmissionsQueueManager }
func (*SubmissionUseCases) CanStudentSubmitToTestBlock ¶
func (useCases *SubmissionUseCases) CanStudentSubmitToTestBlock(studentUUID string, testBlockUUID string) (bool, error)
func (*SubmissionUseCases) GetSubmissionArchive ¶ added in v0.51.0
func (useCases *SubmissionUseCases) GetSubmissionArchive(dto *dtos.GetSubmissionArchiveDTO) ([]byte, error)
GetSubmissionArchive Use case to return the bytes of the `zip` archive of a submission
func (*SubmissionUseCases) GetSubmissionStatus ¶ added in v0.42.0
func (useCases *SubmissionUseCases) GetSubmissionStatus(studentUUID, testBlockUUID string) (*dtos.SubmissionStatusUpdateDTO, error)
func (*SubmissionUseCases) SaveSubmission ¶
func (useCases *SubmissionUseCases) SaveSubmission(dto *dtos.CreateSubmissionDTO) (string, error)
Click to show internal directories.
Click to hide internal directories.