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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PKUClient

type PKUClient struct{}

func (PKUClient) MakeCourse

func (p PKUClient) MakeCourse(name string, desc string, token string) (icarus.Course, error)

func (PKUClient) MakeUser

func (p PKUClient) MakeUser(userID string, password string) (icarus.User, error)

type PKUCourse

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

func (PKUCourse) Elect

func (pc PKUCourse) Elect(session icarus.LoginSession) (bool, error)

func (PKUCourse) Name

func (pc PKUCourse) Name() string

type PKULoginSession

type PKULoginSession string

type PKUUser

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

func (PKUUser) ListCourse

func (pu PKUUser) ListCourse() ([]icarus.CourseData, error)

func (PKUUser) Login

func (pu PKUUser) Login() (icarus.LoginSession, error)

func (PKUUser) Name

func (pu PKUUser) Name() string

Jump to

Keyboard shortcuts

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