Documentation
¶
Index ¶
- Constants
- func CookieJarFromMap(m map[string]string, url *url.URL) (http.CookieJar, error)
- func CookieJarFromReader(reader io.Reader, url *url.URL, filter []string) (http.CookieJar, error)
- func DecodeSolution(backend string, reader io.Reader) (*string, error)
- func EncodeChallenge(backend string, lang Lang, filters Filters, challenge Challenge, ...) error
- type BackendConfig
- type Challenge
- type Config
- type ErrorReport
- type Filters
- type Lang
- type Provider
- type SubmissionReport
- type SubmissionStatistics
- type TransportClient
- func (client *TransportClient) Do(method string, path string, input interface{}, output interface{}) error
- func (client *TransportClient) DoQuery(operationName string, query string, variables interface{}, output interface{}) error
- func (client *TransportClient) RawDo(r *http.Request) (*http.Response, error)
- func (client *TransportClient) ResolveReference(path string) (*url.URL, error)
- func (client *TransportClient) SetCookieJar(jar http.CookieJar)
- func (client *TransportClient) SetCookies(cookies map[string]string) error
Constants ¶
View Source
const ( Cpp string = "cpp" Cpp14 = "cpp14" Java = "java" Java8 = "java8" Java15 = "java15" Python = "python" Python3 = "python3" Perl = "perl" Haskell = "haskell" Clojure = "clojure" ObjectiveC = "objectivec" Pypy = "pypy" Pypy3 = "pypy3" C = "c" Csharp = "csharp" JavaScript = "javascript" Ruby = "ruby" Swift = "swift" Golang = "golang" Scala = "scala" Kotlin = "kotlin" Rust = "rust" Php = "php" TypeScript = "typescript" Racket = "racket" Erlang = "erlang" Elixir = "elixir" Bash = "bash" )
Variables ¶
This section is empty.
Functions ¶
func CookieJarFromMap ¶
func CookieJarFromReader ¶
func EncodeChallenge ¶
Types ¶
type BackendConfig ¶
type Config ¶
type Config struct {
Backend map[string]BackendConfig `mapstructure:"backend"`
}
type ErrorReport ¶
func NewErrorReport ¶
func NewErrorReport(cls string, msg string, header string, content string) ErrorReport
type Filters ¶
type Filters struct {
// contains filtered or unexported fields
}
func ParseFilters ¶
func (*Filters) GetFilterOrDefault ¶
type SubmissionReport ¶
type SubmissionReport interface { HasSucceeded() bool Identify() string Statistics() SubmissionStatistics ErrorReport() *ErrorReport }
type SubmissionStatistics ¶
type SubmissionStatistics struct { TotalTestCases uint64 Runtime string RuntimePercentile float64 Memory string MemoryPercentile float64 Score string MaxScore string }
func NewStatistics ¶
func NewStatistics() SubmissionStatistics
type TransportClient ¶
type TransportClient struct { CsrfToken string CsrfTokenHeader string // contains filtered or unexported fields }
func NewTransportClient ¶
func NewTransportClient(base url.URL) TransportClient
func (*TransportClient) Do ¶
func (client *TransportClient) Do(method string, path string, input interface{}, output interface{}) error
func (*TransportClient) DoQuery ¶
func (client *TransportClient) DoQuery(operationName string, query string, variables interface{}, output interface{}) error
func (*TransportClient) ResolveReference ¶
func (client *TransportClient) ResolveReference(path string) (*url.URL, error)
func (*TransportClient) SetCookieJar ¶
func (client *TransportClient) SetCookieJar(jar http.CookieJar)
func (*TransportClient) SetCookies ¶
func (client *TransportClient) SetCookies(cookies map[string]string) error
Click to show internal directories.
Click to hide internal directories.