entities

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Solution

type Solution struct {
	gorm.Model

	TaskID    uint
	Task      Task
	Code      string
	IsCorrect bool
	Result    datatypes.JSON
}

Solution ...

type SolutionGetter

type SolutionGetter interface {
	GetSolution(id uint) (Solution, error)
}

SolutionGetter ...

type SolutionRegister

type SolutionRegister interface {
	RegisterSolution(id uint)
}

SolutionRegister ...

type Task

type Task struct {
	gorm.Model

	Title           string
	Description     string
	BoilerplateCode string
	TestCases       datatypes.JSON
}

Task ...

type TaskGetter

type TaskGetter interface {
	GetTask(id uint) (Task, error)
}

TaskGetter ...

Jump to

Keyboard shortcuts

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