controller

package
v0.0.0-...-1d50835 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceRegistry = map[string]Device{}

Functions

func Init

func Init()

Types

type Device

type Device struct {
	IpAddr  string `json:"ip_addr"`
	MacAddr string `json:"mac_addr,omitempty"`
	Name    string `json:"name"`
	Vendor  string `json:"vendor"`
}

type NmapResponse

type NmapResponse struct {
	Hosts []struct {
		Addresses []struct {
			Addr   string `xml:"addr,attr"`
			Type   string `xml:"addrtype,attr"`
			Vendor string `xml:"vendor,attr"`
		} `xml:"address"`
		HostNames []struct {
			Name string `xml:"name,attr"`
		} `xml:"hostnames>hostname"`
	} `xml:"host"`
}

Jump to

Keyboard shortcuts

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