netutils

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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) (int, error)

func ValidatePort

func ValidatePort(ctx echo.Context, port string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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