Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶ added in v0.2.0
type Repository interface {
// SaveAddrName saves a mapping from IP address to domain name (from DNS)
SaveAddrName(ctx context.Context, addr net.IP, name string) error
// SaveHWAddrName saves a mapping from MAC address to hostname (from mDNS/LLMNR/NBNS/DHCP)
SaveHWAddrName(ctx context.Context, hwAddr net.HardwareAddr, name string) error
// LookupByAddr returns names associated with an IP address
LookupByAddr(ctx context.Context, addr net.IP) ([]string, error)
// LookupByHWAddr returns names associated with a MAC address
LookupByHWAddr(ctx context.Context, hwAddr net.HardwareAddr) ([]string, error)
}
Click to show internal directories.
Click to hide internal directories.