Documentation ¶ Index ¶ Variables func GetNetInterfaces() ([]net.Interface, error) func ValidateAddress(ip netip.Addr) error func ValidateIP(ctx echo.Context, ip string) error func ValidatePort(ctx echo.Context, port string) error Constants ¶ This section is empty. Variables ¶ View Source var ErrInvalidPort = errors.New(`端口设置不正确: 超过区间 1~65535`) Functions ¶ func GetNetInterfaces ¶ func GetNetInterfaces() ([]net.Interface, error) func ValidateAddress ¶ func ValidateAddress(ip netip.Addr) error Validates an IP address func ValidateIP ¶ func ValidateIP(ctx echo.Context, ip string) error func ValidatePort ¶ func ValidatePort(ctx echo.Context, port string) error Types ¶ This section is empty. Source Files ¶ View all Source files ip.go net_interface.go port.go Click to show internal directories. Click to hide internal directories.