Documentation ¶
Index ¶
Constants ¶
View Source
const ( UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" METHODPASSWORD = "Password Login" METHODQRCODE = "QrCode Login" SKLLOGINURL = "https://skl.hdu.edu.cn" SKLAPPURL = "https://skl.hduhelp.com" IHDULOGINURL = "https://i.hdu.edu.cn/tp_up/" NEWJWLOGINURL = "https://newjw.hdu.edu.cn/sso/driot4login" HDUHELPLOGINURL = "https://api.hduhelp.com/login/direct/cas" HDUHELPAPPURL = "https://app.hduhelp.com" HDUHELPOAUTHLOGIN = "https://api.hduhelp.com/oauthLogin/%s/%s" HDQGAPPID = "NgZ0Tcc2dtPUz1Ks" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HduHelp ¶ added in v1.0.1
type HduHelp struct {
// contains filtered or unexported fields
}
func HduHelpLogin ¶ added in v1.0.1
func HduHelpLogin(cas *LoginStatus) *HduHelp
type IHdu ¶
type IHdu struct {
// contains filtered or unexported fields
}
func IHduLogin ¶
func IHduLogin(cas *LoginStatus) *IHdu
type LoginStatus ¶
type LoginStatus struct {
// contains filtered or unexported fields
}
func CasAsyncQrLoginWithUUID ¶
func CasAsyncQrLoginWithUUID(uuid string, interval time.Duration, retry int) *LoginStatus
func CasPasswordLogin ¶
func CasPasswordLogin(uname, password string) *LoginStatus
func CasQrLoginWithUUID ¶
func CasQrLoginWithUUID(uuid string) *LoginStatus
func (*LoginStatus) Error ¶
func (s *LoginStatus) Error() error
type NewJW ¶
type NewJW struct {
// contains filtered or unexported fields
}
func NewJWLogin ¶
func NewJWLogin(cas *LoginStatus) *NewJW
type QrLogin ¶
type QrLogin struct {
// contains filtered or unexported fields
}
func CasQrCodeLogin ¶
func CasQrCodeLogin() *QrLogin
func (*QrLogin) AsyncLogin ¶
func (q *QrLogin) AsyncLogin(interval time.Duration, retry int) *LoginStatus
func (*QrLogin) GetScannerUrl ¶
func (*QrLogin) Login ¶
func (q *QrLogin) Login() *LoginStatus
func (*QrLogin) PrintScannerUrl ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.