Documentation
¶
Index ¶
- Constants
- func BuildLoginForm(userName string, userPass string, uaddress string) url.Values
- func Check(err error)
- func DoLogin(form url.Values, useIp bool) (bool, string)
- func GetExternalIP(interfaceName string) (string, error)
- func GetInterfaceIP(interfaceName string) (net.IP, error)
- func LoginToSeulogin(userName string, userPass string, userIp string, useIp bool) (bool, string)
Constants ¶
View Source
const ( BaseURLAddr = "https://w.seu.edu.cn:802" BaseURLIP = "https://10.80.128.2:802" LoginPath = "/eportal/" )
Variables ¶
This section is empty.
Functions ¶
func BuildLoginForm ¶
func GetExternalIP ¶
GetExternalIP 获取指定接口的路由器Wan口IP
func GetInterfaceIP ¶
GetInterfaceIP 获取指定接口的 IP 地址, 如果接口不存在, 则返回错误
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.