problem

package
v0.0.0-...-b608779 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetProblemsResponse

type GetProblemsResponse struct {
	Problems []SingleProblemResponse `json:"problems"`
}

type GetProblemsSerializer

type GetProblemsSerializer struct {
	Problems []Problem
}

func (GetProblemsSerializer) Response

type Problem

type Problem struct {
	gorm.Model
	Name              string
	Description       string
	CanvasLink        string
	InitialConfigLink string
	TargetLink        string
}

type ProblemController

type ProblemController struct{}

func (*ProblemController) GetProblems

func (pc *ProblemController) GetProblems(c *gin.Context) (int, interface{})

type ProblemRouter

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

func (*ProblemRouter) GetProblems

func (r *ProblemRouter) GetProblems(c *gin.Context)

type ProblemStore

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

func NewProblemStore

func NewProblemStore() ProblemStore

func (*ProblemStore) Find

func (s *ProblemStore) Find() ([]Problem, error)

type SingleProblemResponse

type SingleProblemResponse struct {
	ID                uint   `json:"id"`
	Name              string `json:"name"`
	Description       string `json:"description"`
	CanvasLink        string `json:"canvas_link"`
	InitialConfigLink string `json:"initial_config_link"`
	TargetLink        string `json:"target_link"`
}

Jump to

Keyboard shortcuts

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