contest

package
v0.0.0-...-5856374 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2014 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Contest

type Contest struct {
	Cid           int
	ContestDetail *model.Contest
	Index         map[int]int
	class.Controller
}

func (*Contest) Detail

func (c *Contest) Detail(Cid string)

func (*Contest) GetCount

func (c *Contest) GetCount(qry map[string]string) (int, error)

func (*Contest) InitContest

func (c *Contest) InitContest(Cid string)

func (*Contest) Password

func (c *Contest) Password(Cid string)

func (*Contest) PasswordPage

func (c *Contest) PasswordPage(Cid string)

type ContestProblem

type ContestProblem struct {
	Contest
}

func (*ContestProblem) Detail

func (pc *ContestProblem) Detail(Cid, Pid string)

func (*ContestProblem) Submit

func (pc *ContestProblem) Submit(Cid, Pid string)

type ContestRanklist

type ContestRanklist struct {
	Contest
}

func (*ContestRanklist) Download

func (rc *ContestRanklist) Download(Cid string)

Download 下载contest排名csv文件

func (*ContestRanklist) Home

func (rc *ContestRanklist) Home(Cid string)

Home ranklist 列表主页

type ContestStatus

type ContestStatus struct {
	Contest
}

func (*ContestStatus) Code

func (sc *ContestStatus) Code(Cid string, Sid string)

func (*ContestStatus) List

func (sc *ContestStatus) List(Cid string)

TODO : list by arguments like :contests/<cid>/status?uid=vsake&judge=3&language=1

type UserSorter

type UserSorter []*userRank

func (UserSorter) Len

func (u UserSorter) Len() int

func (UserSorter) Less

func (u UserSorter) Less(i, j int) bool

func (UserSorter) Swap

func (u UserSorter) Swap(i, j int)

Jump to

Keyboard shortcuts

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