repository

package
v0.0.0-...-77f4496 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrepareSubmissionError

type PrepareSubmissionError struct {
	SubmissionId string
}

func (*PrepareSubmissionError) Error

func (e *PrepareSubmissionError) Error() string

type PrepareTestCasesError

type PrepareTestCasesError struct {
	ProblemId string
}

func (*PrepareTestCasesError) Error

func (e *PrepareTestCasesError) Error() string

type RepositoryService

type RepositoryService struct {
	// contains filtered or unexported fields
}

func (*RepositoryService) GetDescriptionPath

func (r *RepositoryService) GetDescriptionPath(problemId string) string

func (*RepositoryService) GetExpectedPath

func (r *RepositoryService) GetExpectedPath(problemId string) string

func (*RepositoryService) GetInputPath

func (r *RepositoryService) GetInputPath(problemId string) string

func (*RepositoryService) GetSubmissionProblemPath

func (r *RepositoryService) GetSubmissionProblemPath(problemId string) string

func (*RepositoryService) GetTestCasesFromRepo

func (r *RepositoryService) GetTestCasesFromRepo(problemId string) ([]model.Test, error)

func (*RepositoryService) UploadSubmissionToRepo

func (r *RepositoryService) UploadSubmissionToRepo(problemId string, filename string, source []byte) (*model.Solution, error)

type Service

type Service interface {
	UploadSubmissionToRepo(problemId string, filename string, source []byte) (*model.Solution, error)
	GetTestCasesFromRepo(problemId string) ([]model.Test, error)

	GetInputPath(problemId string) string
	GetExpectedPath(problemId string) string
	GetDescriptionPath(problemId string) string
	GetSubmissionProblemPath(problemId string) string
}

func NewService

func NewService(path string, metadata metadata.Service) Service

type UploadSubmissionError

type UploadSubmissionError struct {
	Filename string
}

func (*UploadSubmissionError) Error

func (e *UploadSubmissionError) Error() string

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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