schedule

package
v0.0.0-...-8a915dd Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2016 License: GPL-2.0 Imports: 13 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 HDUJudger

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

func (*HDUJudger) GetProblemPage

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

func (*HDUJudger) GetProblems

func (h *HDUJudger) GetProblems() error

func (*HDUJudger) Host

func (h *HDUJudger) Host() string

func (*HDUJudger) Init

func (h *HDUJudger) Init()

func (*HDUJudger) IsExist

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

func (*HDUJudger) Ping

func (h *HDUJudger) Ping() error

func (*HDUJudger) ReplaceImg

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

func (*HDUJudger) SetDetail

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

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