Documentation
¶
Index ¶
- func GetAddressesForNet(n *net.IPNet) (out []net.IP)
- func ScanTCPPort(targetAddress string, targetPort int, timeout time.Duration) (bool, error)
- func ScanUDPPort(targetAddress string, targetPort int, timeout time.Duration, ...) (bool, error)
- type DiscoveredNode
- type NodeScanner
- type PortScanner
- type ScannedNode
- type ScannedPort
- type WakeScanner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanTCPPort ¶
Types ¶
type DiscoveredNode ¶
type DiscoveredNode struct { IPAddress net.IP MACAddress net.HardwareAddr }
type NodeScanner ¶
type NodeScanner struct {
// contains filtered or unexported fields
}
func NewNodeScanner ¶
func NewNodeScanner(device string) *NodeScanner
func (*NodeScanner) Read ¶
func (s *NodeScanner) Read() *DiscoveredNode
func (*NodeScanner) Transmit ¶
func (s *NodeScanner) Transmit() error
type PortScanner ¶
type PortScanner struct {
// contains filtered or unexported fields
}
func NewPortScanner ¶
func (*PortScanner) Read ¶
func (s *PortScanner) Read() *ScannedPort
func (*PortScanner) Transmit ¶
func (s *PortScanner) Transmit() error
type ScannedNode ¶
type WakeScanner ¶
type WakeScanner struct {
// contains filtered or unexported fields
}
func NewWakeScanner ¶
func (*WakeScanner) Open ¶
func (w *WakeScanner) Open() error
func (*WakeScanner) Read ¶
func (w *WakeScanner) Read() *ScannedNode
func (*WakeScanner) Transmit ¶
func (w *WakeScanner) Transmit() error
Click to show internal directories.
Click to hide internal directories.