pku

package
v0.0.0-...-5e74752 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2016 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeToken

func DeToken(s string) (string, string, int, error)

func EnToken

func EnToken(a string, b string, c int) string

Index, Seq, UBound

func FetchAndIdentify

func FetchAndIdentify(jsessionid string) error

func Identify

func Identify(im image.Image) string

func LoginHelper

func LoginHelper(data []string) (string, string, error)

Return jsessionid, supplement page, error

func Refresh

func Refresh(jsessionid string, index string, seq string, ubound int) (bool, error)

func Supplement

func Supplement(jsessionid string, index string, seq string) (bool, error)

Types

type PKUClass

type PKUClass struct {
	Name    string
	Teacher string
	GroupID string
	UBound  int
	Msg     string
	Index   string
	Seq     string
	IsFull  bool
}

Translated from nzk-elect.

type PKUWorker

type PKUWorker struct{}

func (PKUWorker) Elect

func (p PKUWorker) Elect(data []string) []string

func (PKUWorker) ListCourse

func (p PKUWorker) ListCourse(data []string) []string

func (PKUWorker) Login

func (p PKUWorker) Login(data []string) []string

Jump to

Keyboard shortcuts

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