netx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CIDRContainsIP

func CIDRContainsIP(cidr, ip string) bool

func CIDRToIPRange

func CIDRToIPRange(s string) ([]string, error)

CIDRToIPRange return a list of a CIDR

func Detect

func Detect(ip, port string) bool

func IPContains

func IPContains(ips string, target string) bool

func IPExpanded

func IPExpanded(ipStr string) string

func IPv4ToLong

func IPv4ToLong(ip net.IP) uint32

func IsIP

func IsIP(ip string) bool

func IsIPv4

func IsIPv4(ip string) bool

func IsIPv6

func IsIPv6(ip string) bool

func IsInvalidPort

func IsInvalidPort(s string) bool

func IsPrivateIP

func IsPrivateIP(s string) (isIP bool, isPrivate bool)

func LongToIP

func LongToIP(longIP uint32) net.IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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