Documentation ¶
Index ¶
- Variables
- type DefaultFilesService
- type DefaultJudgementsService
- type DefaultProblemService
- type DefaultSubmissionService
- func (d DefaultSubmissionService) Create(submitterID uint64, problemId string, userSpace string) (s *models.Submission, err error)
- func (d DefaultSubmissionService) DeliverJudgement(element *repositories.Process) error
- func (d DefaultSubmissionService) DispatchJudgement(submissionId string) error
- func (d DefaultSubmissionService) ReturnJudgement(judgementId string, outputs [][]byte) error
- type FilesService
- type JudgementsService
- type ProblemsService
- type SubmissionsService
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewSubmissionService, NewProblemService, NewFilesService, NewJudgementsService)
Functions ¶
This section is empty.
Types ¶
type DefaultFilesService ¶
type DefaultFilesService struct {
// contains filtered or unexported fields
}
func (DefaultFilesService) FetchMetaFile ¶
func (d DefaultFilesService) FetchMetaFile(privateSpace string) (data []byte, err error)
type DefaultJudgementsService ¶
type DefaultJudgementsService struct {
// contains filtered or unexported fields
}
type DefaultProblemService ¶
type DefaultProblemService struct {
// contains filtered or unexported fields
}
func (*DefaultProblemService) CreateProblem ¶
func (s *DefaultProblemService) CreateProblem(title, locale string) (*models.Page, error)
type DefaultSubmissionService ¶
type DefaultSubmissionService struct { JudgementService JudgementsService Repository repositories.SubmissionRepository // contains filtered or unexported fields }
func (DefaultSubmissionService) Create ¶
func (d DefaultSubmissionService) Create(submitterID uint64, problemId string, userSpace string) (s *models.Submission, err error)
func (DefaultSubmissionService) DeliverJudgement ¶
func (d DefaultSubmissionService) DeliverJudgement(element *repositories.Process) error
func (DefaultSubmissionService) DispatchJudgement ¶
func (d DefaultSubmissionService) DispatchJudgement(submissionId string) error
func (DefaultSubmissionService) ReturnJudgement ¶
func (d DefaultSubmissionService) ReturnJudgement(judgementId string, outputs [][]byte) error
type FilesService ¶
func NewFilesService ¶
func NewFilesService(client proto.FilesClient) FilesService
type JudgementsService ¶
type JudgementsService interface {
Create(ctx context.Context, tp string, properties map[string]string, inputs [][]byte) (string, error)
}
func NewJudgementsService ¶
func NewJudgementsService(judgementsSrv proto.JudgementsClient) JudgementsService
type ProblemsService ¶
func NewProblemService ¶
func NewProblemService(problemSrv proto.ProblemsClient) ProblemsService
type SubmissionsService ¶
type SubmissionsService interface { Create(submitterID uint64, problemID string, userSpace string) (s *models.Submission, err error) DeliverJudgement(element *repositories.Process) error DispatchJudgement(submissionId string) error ReturnJudgement(judgementId string, outputs [][]byte) error }
func CreateSubmissionsService ¶
func CreateSubmissionsService(cf string, sto repositories.SubmissionRepository, problemsClient protobuf_spec.ProblemsClient, filesClient protobuf_spec.FilesClient, judgementsClient protobuf_spec.JudgementsClient) (SubmissionsService, error)
func NewSubmissionService ¶
func NewSubmissionService( logger *zap.Logger, ProblemService ProblemsService, Repository repositories.SubmissionRepository, FileService FilesService, JudgementService JudgementsService, ) SubmissionsService
Click to show internal directories.
Click to hide internal directories.