schedule

package
v0.0.0-...-ff6f743 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusReverse   = 0 //不可用
	StatusIncon     = 1 //正在比赛中
	StatusAvailable = 2 //可用
	StatusPending   = 3 //等待
	StatusRunning   = 4 //进行中
	StatusEnding    = 5 //结束
)

Variables

View Source
var (
	ErrConnectFailed = errors.New("connection failed")
	ErrNoSuchProblem = errors.New("no such problem")
	ErrMatchFailed   = errors.New("match failed")
	ErrResponse      = errors.New("can't get response")
)
View Source
var PKUlogger *log.Logger

Functions

This section is empty.

Types

type PKUJudger

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

func (*PKUJudger) GetProblemPage

func (h *PKUJudger) GetProblemPage(pid string) (string, error)

func (*PKUJudger) GetProblems

func (h *PKUJudger) GetProblems() error

func (*PKUJudger) Host

func (p *PKUJudger) Host() string

func (*PKUJudger) Init

func (h *PKUJudger) Init()

func (*PKUJudger) IsExist

func (h *PKUJudger) IsExist(page string) bool

func (*PKUJudger) Ping

func (p *PKUJudger) Ping() error

func (*PKUJudger) ReplaceImg

func (h *PKUJudger) ReplaceImg(text string) string

func (*PKUJudger) SetDetail

func (h *PKUJudger) SetDetail(pid string, html string) error

type RemoteOJInterface

type RemoteOJInterface interface {
	Init()
	Host() string
	Ping() error
	GetProblems() error
}

Jump to

Keyboard shortcuts

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