network

package
v0.0.0-...-d3febc4 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPsOnNetwork

func GetIPsOnNetwork(cidr CIDR) ([]string, error)

returns all the IP addresses on the network

func GetPrivateIP4Interfaces

func GetPrivateIP4Interfaces() (map[IFace]CIDR, error)

Looks through all network interfaces and returns the names of those that have a private IP4 address

func IsPortOpen

func IsPortOpen(address string, timeout time.Duration) (bool, error)

checks if a port is open on the given target

Types

type CIDR

type CIDR string

type IFace

type IFace string

Jump to

Keyboard shortcuts

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