NetworkInterfaceInfo struct

NetworkInterfaceInfo represents information about a network interface

Fields:

  • Name (string) - json:"name"
  • HardwareAddr (string) - json:"hardware_address"
  • IPAddresses ([]string) - json:"ip_addresses"
  • Status (NetworkInterfaceStatus) - json:"status"
  • Running (bool) - json:"running"
  • SupportsBroadcast (bool) - json:"supports_broadcast"
  • SupportsMulticast (bool) - json:"supports_multicast"
  • IsLoopback (bool) - json:"is_loopback"
  • IsP2P (bool) - json:"is_point_to_point"

NetworkInterfaceStatus type

NetworkInterfaceStatus represents the status of a network interface

Type Definition:

string

PortStatus type

PortStatus represents the status of a network port

Type Definition:

string

ConnectionInfo struct

ConnectionInfo represents information about an connection

Fields:

  • LocalAddr (string) - json:"local_address"
  • RemoteAddr (string) - json:"remote_address"
  • State (ConnState) - json:"state"

ConnState type

ConnState represents the status of a connection

Type Definition:

string

DNSInfo struct

DNSInfo represents DNS (Domain Name System) information

Fields:

  • Hostname (string) - json:"hostname"
  • IPAddresses ([]string) - json:"ip_addresses"