Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubmissionHandler ¶
func SubmissionHandler(w http.ResponseWriter, r *http.Request)
Types ¶
type Input ¶
type Input struct {
ClientID string `json:"clientId"`
ClientSecret string `json:"clientSecret"`
Script string `json:"script"`
StdIn string `json:"stdin,omitempty"`
Language string `json:"language"`
VersionIndex string `json:"versionIndex"`
// contains filtered or unexported fields
}
Input gets sent to Jdoodle compiler for code submission
func (Input) ResponseChan ¶
func (in Input) ResponseChan() chan models.RemoteCompilerOutput
type Output ¶
type Output struct {
Output string `json:"output"`
StatusCode int `json:"statusCode"`
Memory string `json:"memory"`
CPUTime string `json:"cpuTime"`
}
Output is what comes back from the Jdoodle compiler
Click to show internal directories.
Click to hide internal directories.