problems

package
v0.0.0-...-1388524 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileHandler

func FileHandler(r *request.Request) (request.Response, error)

func ListHandler

func ListHandler(r *request.Request) (request.Response, error)

ListHandler is the request handler for the problem list.

func SubmitHandler

func SubmitHandler(r *request.Request) (request.Response, error)

func ViewHandler

func ViewHandler(r *request.Request) (request.Response, error)

Types

type Params

type Params struct {
	Problems []*models.Problem
}

type SubmitParams

type SubmitParams struct {
	Problem   *models.Problem
	Languages []*util.Language
}

type ViewParams

type ViewParams struct {
	Problem *models.Problem
}

Jump to

Keyboard shortcuts

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