Documentation ¶
Index ¶
- type SubmissionsRabbitMQQueueManager
- type SubmissionsRealTimeUpdatesQueueMgr
- type SubmissionsRealTimeUpdatesSender
- func (sender *SubmissionsRealTimeUpdatesSender) CreateChannel(submissionUUID string) *UpdatesChannel
- func (sender *SubmissionsRealTimeUpdatesSender) DeleteChannel(submissionUUID string)
- func (sender *SubmissionsRealTimeUpdatesSender) Listen()
- func (sender *SubmissionsRealTimeUpdatesSender) SendUpdate(update *dtos.SubmissionStatusUpdateDTO)
- type SubmissionsRepositoryImpl
- func (repository *SubmissionsRepositoryImpl) DoesStudentOwnSubmission(studentUUID string, submissionUUID string) (bool, error)
- func (repository *SubmissionsRepositoryImpl) GetStudentSubmission(studentUUID string, testBlockUUID string) (submission *entities.Submission, err error)
- func (repository *SubmissionsRepositoryImpl) GetStudentSubmissionArchiveUUIDFromSubmissionUUID(submissionUUID string) (archiveUUID string, err error)
- func (repository *SubmissionsRepositoryImpl) GetSubmissionWorkMetadata(submissionUUID string) (submissionWorkMetadata *entities.SubmissionWork, err error)
- func (repository *SubmissionsRepositoryImpl) GetTeacherOfCourseBySubmissionUUID(submissionUUID string) (teacherUUID string, err error)
- func (repository *SubmissionsRepositoryImpl) ResetSubmissionStatus(submissionUUID string) (err error)
- func (repository *SubmissionsRepositoryImpl) SaveSubmission(dto *dtos.CreateSubmissionDTO) (submissionUUID string, err error)
- type UpdatesChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubmissionsRabbitMQQueueManager ¶
func GetSubmissionsRabbitMQQueueManagerInstance ¶
func GetSubmissionsRabbitMQQueueManagerInstance() *SubmissionsRabbitMQQueueManager
func (*SubmissionsRabbitMQQueueManager) QueueWork ¶
func (queueManager *SubmissionsRabbitMQQueueManager) QueueWork(work *entities.SubmissionWork) (err error)
Methods implementation
type SubmissionsRealTimeUpdatesQueueMgr ¶ added in v0.42.0
func GetSubmissionsRealTimeUpdatesQueueMgrInstance ¶ added in v0.42.0
func GetSubmissionsRealTimeUpdatesQueueMgrInstance() *SubmissionsRealTimeUpdatesQueueMgr
func (*SubmissionsRealTimeUpdatesQueueMgr) ListenForUpdates ¶ added in v0.42.0
func (queueMgr *SubmissionsRealTimeUpdatesQueueMgr) ListenForUpdates()
ListenForUpdates listens for updates in the submission real time updates queue
type SubmissionsRealTimeUpdatesSender ¶ added in v0.42.0
type SubmissionsRealTimeUpdatesSender struct { // New updates are pushed to this channel Updates UpdatesChannel // All the open connections OpenConnections map[string]UpdatesChannel }
func GetSubmissionsRealTimeUpdatesSenderInstance ¶ added in v0.42.0
func GetSubmissionsRealTimeUpdatesSenderInstance() *SubmissionsRealTimeUpdatesSender
func (*SubmissionsRealTimeUpdatesSender) CreateChannel ¶ added in v0.42.0
func (sender *SubmissionsRealTimeUpdatesSender) CreateChannel(submissionUUID string) *UpdatesChannel
Create a channel for a submission
func (*SubmissionsRealTimeUpdatesSender) DeleteChannel ¶ added in v0.42.0
func (sender *SubmissionsRealTimeUpdatesSender) DeleteChannel(submissionUUID string)
Delete a channel for a submission
func (*SubmissionsRealTimeUpdatesSender) Listen ¶ added in v0.42.0
func (sender *SubmissionsRealTimeUpdatesSender) Listen()
listen listens for new updates and new connections
func (*SubmissionsRealTimeUpdatesSender) SendUpdate ¶ added in v0.42.0
func (sender *SubmissionsRealTimeUpdatesSender) SendUpdate(update *dtos.SubmissionStatusUpdateDTO)
SendUpdate sends an update to the updates channel
type SubmissionsRepositoryImpl ¶
func GetSubmissionsRepositoryInstance ¶
func GetSubmissionsRepositoryInstance() *SubmissionsRepositoryImpl
func (*SubmissionsRepositoryImpl) DoesStudentOwnSubmission ¶ added in v0.51.0
func (repository *SubmissionsRepositoryImpl) DoesStudentOwnSubmission(studentUUID string, submissionUUID string) (bool, error)
DoesStudentOwnSubmission returns true if the student owns the submission
func (*SubmissionsRepositoryImpl) GetStudentSubmission ¶
func (repository *SubmissionsRepositoryImpl) GetStudentSubmission(studentUUID string, testBlockUUID string) (submission *entities.Submission, err error)
func (*SubmissionsRepositoryImpl) GetStudentSubmissionArchiveUUIDFromSubmissionUUID ¶
func (repository *SubmissionsRepositoryImpl) GetStudentSubmissionArchiveUUIDFromSubmissionUUID(submissionUUID string) (archiveUUID string, err error)
func (*SubmissionsRepositoryImpl) GetSubmissionWorkMetadata ¶
func (repository *SubmissionsRepositoryImpl) GetSubmissionWorkMetadata(submissionUUID string) (submissionWorkMetadata *entities.SubmissionWork, err error)
func (*SubmissionsRepositoryImpl) GetTeacherOfCourseBySubmissionUUID ¶ added in v0.51.0
func (repository *SubmissionsRepositoryImpl) GetTeacherOfCourseBySubmissionUUID(submissionUUID string) (teacherUUID string, err error)
GetTeacherOfCourseBySubmissionUUID returns the teacher of the course that the submission belongs to
func (*SubmissionsRepositoryImpl) ResetSubmissionStatus ¶
func (repository *SubmissionsRepositoryImpl) ResetSubmissionStatus(submissionUUID string) (err error)
func (*SubmissionsRepositoryImpl) SaveSubmission ¶
func (repository *SubmissionsRepositoryImpl) SaveSubmission(dto *dtos.CreateSubmissionDTO) (submissionUUID string, err error)
type UpdatesChannel ¶ added in v0.42.0
type UpdatesChannel chan *dtos.SubmissionStatusUpdateDTO
Click to show internal directories.
Click to hide internal directories.