controllers

package
v0.0.0-...-f6b89fe Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2016 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 AdminController

type AdminController struct {
	BaseController
}

func (*AdminController) DeleteUser

func (this *AdminController) DeleteUser()

/admin/search/name/:uid

func (*AdminController) MakeEditor

func (this *AdminController) MakeEditor()

/admin/makeEditor/:uid

func (*AdminController) RevokeEditor

func (this *AdminController) RevokeEditor()

/admin/revokeEditor/:uid

func (*AdminController) SearchName

func (this *AdminController) SearchName()

/admin/search/name/:name

func (*AdminController) ShowEditors

func (this *AdminController) ShowEditors()

type BaseController

type BaseController struct {
	beego.Controller
}

func (*BaseController) Prepare

func (this *BaseController) Prepare()

type ContestController

type ContestController struct {
	BaseController
}

func (*ContestController) AddProblem

func (this *ContestController) AddProblem()

/contest/:name/addproblem

func (*ContestController) Contest

func (this *ContestController) Contest()

Serve the contest page /contest/:name

func (*ContestController) CreateContest

func (this *ContestController) CreateContest()

Serve the create contest page /contest/create

func (*ContestController) GetProblem

func (this *ContestController) GetProblem()

/contest/:name/:pid

func (*ContestController) SaveContest

func (this *ContestController) SaveContest()

/contest/save

type ProblemController

type ProblemController struct {
	BaseController
}

func (*ProblemController) AddTestCase

func (this *ProblemController) AddTestCase()

func (*ProblemController) Create

func (this *ProblemController) Create()

Create Page

func (*ProblemController) List

func (this *ProblemController) List()

Serves the problems list page

func (*ProblemController) ProblemByCategory

func (this *ProblemController) ProblemByCategory()

Using list template here as well To do : serve in pages, per page 10 problems - done

func (*ProblemController) ProblemById

func (this *ProblemController) ProblemById()

Serves the Problem Page To-do: Show recently solved users and their language on sidebar To-do: Later, add least execution time log on sidebar

func (*ProblemController) RunCode

func (this *ProblemController) RunCode()

func (*ProblemController) SaveProblem

func (this *ProblemController) SaveProblem()

Save Problem To-do: Clean info before save - Ambigous To-do: Check login and user previlages - Done

func (*ProblemController) SaveSubmission

func (this *ProblemController) SaveSubmission()

Format of submission Status - crashes on submission, code and lang are empty

func (*ProblemController) SaveTestCase

func (this *ProblemController) SaveTestCase()

func (*ProblemController) Test

func (this *ProblemController) Test()

type ProblemTypes

type ProblemTypes struct {
	Count      int64
	Categories *orm.ParamsList
}

type UserController

type UserController struct {
	BaseController
}

func (*UserController) Login

func (this *UserController) Login()

func (*UserController) Logout

func (this *UserController) Logout()

func (*UserController) Show

func (this *UserController) Show()

To-do: Show programs solved by the user

func (*UserController) Signup

func (this *UserController) Signup()

Jump to

Keyboard shortcuts

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