Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptWebVPNUrl ¶ added in v0.2.0
Types ¶
type ActionSelector ¶
ActionSelector 选择要执行的动作
type AuthSelector ¶
type AuthSelector interface { WithAuth(username, password string) PlatformSelector WithToken(token string) PlatformSelector }
AuthSelector 选择鉴权方式
func Use ¶
func Use(client *http.Client) AuthSelector
Use 接收一个 *http.Client,提供登陆动作的链式调用。如果 client 没有 cookiejar 会自动加上一个空 cookiejar.
type PersonalInfo ¶
type PersonalInfo struct { Profile profile // 基本信息 Mail mail // 校邮箱信息 Wallet wallet // 校园卡余额信息 Network network // 校园网余额信息 Library library // 图书馆借阅情况 }
PersonalInfo 个人信息
type PlatformSelector ¶
type PlatformSelector interface {
On(platform Platform) ActionSelector
}
PlatformSelector 选择平台
type QuerySelector ¶
type QuerySelector interface { Token(platform Platform) (string, error) Info(platform Platform) (*PersonalInfo, error) }
QuerySelector 选择要查询的内容
func About ¶
func About(client *http.Client) QuerySelector
TODO 查询 About 接收一个 *http.Client,提供查询相关信息的链式调用
Click to show internal directories.
Click to hide internal directories.