ppjc

package
v0.0.0-...-263a686 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(addr, auth string) (*Client, error)

NewClient's addr must be ended with '/'

func (*Client) ContestsDelete

func (client *Client) ContestsDelete(cid int64) error

func (*Client) ContestsJoin

func (client *Client) ContestsJoin(cid, iid int64) error

func (*Client) ContestsNew

func (client *Client) ContestsNew(cid int64) error

func (*Client) ContestsProblemsAdd

func (client *Client) ContestsProblemsAdd(cid, pid int64) error

func (*Client) ContestsProblemsDelete

func (client *Client) ContestsProblemsDelete(cid, pid int64) error

func (*Client) ContestsRanking

func (client *Client) ContestsRanking(cid, limit, offset int64) ([]sctypes.RankingRow, error)

func (*Client) ContestsRankingCount

func (client *Client) ContestsRankingCount(cid int64) (int64, error)

func (*Client) ContestsRankingWithUserData

func (client *Client) ContestsRankingWithUserData(cid, limit, offset int64) ([]sctypes.RankingRowWithUserData, error)

func (*Client) FileDownload

func (client *Client) FileDownload(category, name string) (io.ReadCloser, error)

func (*Client) JudgeSubmissionsUpdateCase

func (client *Client) JudgeSubmissionsUpdateCase(cid, sid, jid int64, status string, res database.SubmissionTestCase) error

func (*Client) JudgeSubmissionsUpdateResult

func (client *Client) JudgeSubmissionsUpdateResult(cid, sid, jid int64, status sctypes.SubmissionStatusType, score int64, time, mem int64, message io.Reader) error

func (*Client) JudgeSubmit

func (client *Client) JudgeSubmit(cid, sid int64) error

func (*Client) StartWorkersWSPolling

func (client *Client) StartWorkersWSPolling(parallel int64, judgeInfoChan chan<- ppjctypes.JudgeInformation, ctx context.Context) (<-chan error, func(), error)

type EmptyReadCloser

type EmptyReadCloser struct{}

func (*EmptyReadCloser) Close

func (er *EmptyReadCloser) Close() error

func (*EmptyReadCloser) Read

func (e *EmptyReadCloser) Read([]byte) (int, error)

Jump to

Keyboard shortcuts

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