Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PostgresConnection *pgx.Conn
View Source
var RabbitMQ internal.RabbitMQ
View Source
var Redis *redis.Client
Functions ¶
Types ¶
type CheckRequest ¶
type CheckRequest struct {
SubmissionID string `json:"submission_id"`
}
type CheckResponse ¶
type CheckResponse struct { StdOut string `json:"stdout"` StdErr string `json:"stderr"` Correct bool `json:"correct"` Error string `json:"error"` }
func NewCheckResponse ¶
func NewCheckResponse(stdout string, stderr string, err string) CheckResponse
type SubmissionRequest ¶
func CheckJSONSubmissionRequest ¶
func CheckJSONSubmissionRequest(bodyBytes []byte) (SubmissionRequest, error)
type SubmissionResponse ¶
type SubmissionResponse struct { Submitted bool `json:"submitted"` SubmissionID string `json:"submission_id"` Error string `json:"error"` }
func NewSubmitResponse ¶
func NewSubmitResponse(submitted bool, submission_id string, error string) SubmissionResponse
Click to show internal directories.
Click to hide internal directories.