xnet

package module
v0.0.0-...-da93e03 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalIP

func GetLocalIP() (ip string, err error)

func GetOutBoundIP

func GetOutBoundIP() (ip string, err error)

func GetPeerIP

func GetPeerIP(ctx context.Context) string

GetPeerIP 获取对端ip

func InetAtoN

func InetAtoN(ip string) int64

func InetNtoA

func InetNtoA(ip int64) string

func IsPrivateIP

func IsPrivateIP(ip net.IP) bool

func SetQueryValues

func SetQueryValues(original string, adds map[string]string, dels []string) (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