common

package
v0.0.0-...-9c83337 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Authentication

type Authentication struct {
	CSRF   string
	Cookie []*http.Cookie
}

type Config

type Config struct {
	Target   Target   `json:"target"`
	Settings Settings `json:"settings"`

	Account  Account  `json:"account"`
	Testcase Testcase `json:"testcase"`
}

type Contest

type Contest struct {
	ID               int    `json:"id"`
	Name             string `json:"name"`
	DurationSeconds  int64  `json:"durationSeconds"`
	StartTimeSeconds int64  `json:"startTimeSeconds"`
}

type Contests

type Contests struct {
	Status string    `json:"status"`
	Result []Contest `json:"result"`
}

type Language

type Language struct {
	GNUC11   bool
	GNUCPP11 bool
	GNUCPP14 bool
	GNUCPP17 bool
	Python2  bool
	Python3  bool
	Go       bool
}

type Problem

type Problem struct {
	ContestID   int    `json:"contestId"`
	Index       string `json:"index"`
	Name        string `json:"name"`
	Memorylimit int
	Timelimit   int
}

type ProblemList

type ProblemList struct {
	Problems []Problem `json:"problems"`
}

type Problems

type Problems struct {
	Status string      `json:"status"`
	Result ProblemList `json:"result"`
}

type Request

type Request struct {
	URL         string
	Method      string
	Header      map[string]string
	Data        map[string]string
	NotRedirect bool

	Authentication *Authentication
}

type Response

type Response struct {
	ResponseBody   []byte
	RedirectStatus bool
}

type Settings

type Settings struct {
	Path   string
	Server string

	IsAutoLogin bool `json:"autoLogin"`
	IsAutoHack  bool `json:"autoHack"`
}

type Submission

type Submission struct {
	SubmissionID int
	Language     string
	Code         string
	Path         string
}

type Target

type Target struct {
	ContestID int    `json:"contest"`
	ProblemID string `json:"index"`
}

type Testcase

type Testcase struct {
	InputFile  string `json:"inputFile"`
	OutputFile string `json:"outputFile"`
}

Jump to

Keyboard shortcuts

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