Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Ejudge
- func (ej *Ejudge) ChangeRunStatus(csid string, runID int, status string) error
- func (ej *Ejudge) CheckContest(sid string, cid int, verbose bool) error
- func (ej *Ejudge) Commit(sid string) error
- func (ej *Ejudge) CreateContest(sid string, cid int, tid int) error
- func (ej *Ejudge) DumpIPs(csid string) (io.Reader, error)
- func (ej *Ejudge) DumpProbStats(csid string) (io.Reader, error)
- func (ej *Ejudge) DumpRegPasswords(csid string) (io.Reader, error)
- func (ej *Ejudge) DumpRuns(csid string) (io.Reader, error)
- func (ej *Ejudge) DumpStandings(csid string) (io.Reader, error)
- func (ej *Ejudge) DumpUsers(csid string) (io.Reader, error)
- func (ej *Ejudge) FilterRuns(csid string, filter string, count int) ([]int, error)
- func (ej *Ejudge) FlipUserBan(csid string, uid int) error
- func (ej *Ejudge) FlipUserIncom(csid string, uid int) error
- func (ej *Ejudge) FlipUserLock(csid string, uid int) error
- func (ej *Ejudge) FlipUserPriv(csid string, uid int) error
- func (ej *Ejudge) FlipUserVisible(csid string, uid int) error
- func (ej *Ejudge) Lock(sid string, cid int) error
- func (ej *Ejudge) Login() (string, error)
- func (ej *Ejudge) Logout(sid string) error
- func (ej *Ejudge) MakeInvisible(sid string, cid int) error
- func (ej *Ejudge) MakeVisible(sid string, cid int) error
- func (ej *Ejudge) MasterLogin(sid string, cid int) (string, error)
- func (ej *Ejudge) RegisterUser(csid, login string) error
- func (ej *Ejudge) ReloadConfig(csid string) error
- func (ej *Ejudge) SendRunComment(csid string, runID int, comment string) error
Constants ¶
View Source
const BadSID = "0000000000000000"
Variables ¶
View Source
var ( ErrParseMasterSID = errors.New("can't parse master SID") ErrBadStatusCode = errors.New("bad status code") ErrBadFilter = errors.New("bad filter expression") ErrUnknownVerdict = errors.New("unknown verdict") )
View Source
var Verdicts = map[string]int{
"OK": 0,
"IG": 9,
"DQ": 10,
"SV": 14,
"PR": 16,
"RJ": 17,
"SM": 23,
"rejudge": 99,
}
Functions ¶
This section is empty.
Types ¶
type Ejudge ¶
type Ejudge struct {
// contains filtered or unexported fields
}
func (*Ejudge) ChangeRunStatus ¶ added in v0.11.0
func (*Ejudge) CheckContest ¶
func (*Ejudge) DumpProbStats ¶ added in v0.19.3
func (*Ejudge) DumpRegPasswords ¶ added in v0.19.3
func (*Ejudge) DumpStandings ¶ added in v0.19.3
func (*Ejudge) FilterRuns ¶
func (*Ejudge) FlipUserBan ¶ added in v0.19.5
func (*Ejudge) FlipUserIncom ¶ added in v0.19.5
func (*Ejudge) FlipUserLock ¶ added in v0.19.5
func (*Ejudge) FlipUserPriv ¶ added in v0.19.5
func (*Ejudge) FlipUserVisible ¶ added in v0.19.5
func (*Ejudge) RegisterUser ¶ added in v0.13.0
func (*Ejudge) ReloadConfig ¶
Click to show internal directories.
Click to hide internal directories.