Documentation ¶
Index ¶
- Constants
- Variables
- type PKUJudger
- func (h *PKUJudger) GetProblemPage(pid string) (string, error)
- func (h *PKUJudger) GetProblems() error
- func (p *PKUJudger) Host() string
- func (h *PKUJudger) Init()
- func (h *PKUJudger) IsExist(page string) bool
- func (p *PKUJudger) Ping() error
- func (h *PKUJudger) ReplaceImg(text string) string
- func (h *PKUJudger) SetDetail(pid string, html string) error
- type RemoteOJInterface
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
View Source
var ROJs = []RemoteOJInterface{&PKUJudger{}}
Functions ¶
This section is empty.
Types ¶
type PKUJudger ¶
type PKUJudger struct {
// contains filtered or unexported fields
}
func (*PKUJudger) GetProblems ¶
func (*PKUJudger) ReplaceImg ¶
type RemoteOJInterface ¶
Click to show internal directories.
Click to hide internal directories.