lib

package
v0.0.0-...-ae37e92 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client *http.Client

Functions

func Checksum

func Checksum(data url.Values, token string) string

func GenInfo

func GenInfo(data url.Values, token string) string

func GetAndParseJson

func GetAndParseJson(url string, query url.Values, ret interface{})

func GetPortalPage

func GetPortalPage(srunUrl string) (ip, acId string)

func Login

func Login(username, password, srunUrl string)

func PwdHmd5

func PwdHmd5(password, token string) string

func XEncode

func XEncode(msg, key string) string

Types

type Challenge

type Challenge struct {
	Challenge string `json:"challenge"`
	ClientIp  string `json:"client_ip"`
}

func GetChallenge

func GetChallenge(srunUrl, username string) *Challenge

type RAction

type RAction struct {
	Res      string      `json:"res"`
	Error    string      `json:"error"`
	Ecode    interface{} `json:"ecode"`
	ErrorMsg string      `json:"error_msg"`
	ClientIp string      `json:"client_ip"`
}

Jump to

Keyboard shortcuts

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