seulogin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 BuildLoginForm(userName string, userPass string, uaddress string) url.Values

func Check

func Check(err error)

func DoLogin

func DoLogin(form url.Values, useIp bool) (bool, string)

func GetExternalIP

func GetExternalIP(interfaceName string) (string, error)

GetExternalIP 获取指定接口的路由器Wan口IP

func GetInterfaceIP

func GetInterfaceIP(interfaceName string) (net.IP, error)

GetInterfaceIP 获取指定接口的 IP 地址, 如果接口不存在, 则返回错误

func LoginToSeulogin

func LoginToSeulogin(userName string, userPass string, userIp string, useIp bool) (bool, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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