syzojclient

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package syzojclient provides interface interact with syzoj front-end.

Transmission protocol: socket.io Encoding: msgpack encode

Based on github.com/googollee/go-socket.io

Protocol details in api.md

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is syzoj judge client

func NewClient

func NewClient(url, token string) (*Client, chan error, error)

NewClient connect to socket.io endpoint

func (*Client) C

func (c *Client) C() <-chan client.Task

C c

type Task

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

Task task

func (*Task) Compiled

func (t *Task) Compiled(p *client.ProgressCompiled)

Compiled compiled

func (*Task) Finished

func (t *Task) Finished(r *client.JudgeResult)

Finished finished

func (*Task) Param

func (t *Task) Param() *client.JudgeTask

Param param

func (*Task) Parsed

func (t *Task) Parsed(p *problem.Config)

Parsed parsed

func (*Task) Progressed

func (t *Task) Progressed(p *client.ProgressProgressed)

Progressed progress

Jump to

Keyboard shortcuts

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