client

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtcliClient

type AtcliClient struct {
	// contains filtered or unexported fields
}
var Client *AtcliClient

func NewClient

func NewClient(host, port string) *AtcliClient

func (*AtcliClient) GetContest

func (c *AtcliClient) GetContest(contestID string, withTestcasesURL bool, contest *models.Contest) (*resty.Response, error)

func (*AtcliClient) GetSubmission

func (c *AtcliClient) GetSubmission(contestID string, sbmID int, sbm *models.Submission) (*resty.Response, error)

func (*AtcliClient) GetSubmissions

func (c *AtcliClient) GetSubmissions(contestID, taskName, status string) (*resty.Response, []*models.Submission, error)

func (*AtcliClient) GetTask

func (c *AtcliClient) GetTask(contestID string, taskName string, task *models.Task) (*resty.Response, error)

func (*AtcliClient) GetTasks

func (c *AtcliClient) GetTasks(contestID string, isFull bool) (*resty.Response, []*models.Task, error)

func (*AtcliClient) Join

func (c *AtcliClient) Join(contestID string, contest *models.Contest) (*resty.Response, error)

func (*AtcliClient) Me

func (c *AtcliClient) Me(user *models.User) (*resty.Response, error)

func (*AtcliClient) PostSubmission

func (c *AtcliClient) PostSubmission(contestID string, taskName string, sbmSource string, sbm *models.Submission) (*resty.Response, error)

func (*AtcliClient) SetBasicAuth

func (c *AtcliClient) SetBasicAuth(username, token string)

Jump to

Keyboard shortcuts

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