Documentation
¶
Index ¶
- Variables
- func DateTimeFmt(t time.Time) string
- func SortDevicesByAddr(devs []Device)
- type Device
- func (d Device) DiscoveredAtString() string
- func (d Device) FirstSeenString() string
- func (d Device) IsServer() bool
- func (d Device) IsUpdated() bool
- func (d Device) LastPingMaximumString() string
- func (d Device) LastPingMeanString() string
- func (d Device) LastSeenDurString(f func(time.Time) time.Duration) string
- func (d Device) LastSeenString() string
- func (d Device) Merge(in Device) Device
- func (d *Device) SetUpdated()
- func (d Device) String() string
- func (d *Device) UpdateFromPingStats(stats nettools.Icmp4EchoResponseStatistics, ts time.Time)
- type DeviceFilter
- type DiscoverySource
- type EventDeviceAdded
- type EventDeviceDiscovered
- type EventDeviceUpdated
- type Meta
- type Pinger
- type SNMP
- type Server
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DateTimeFmt ¶
func SortDevicesByAddr ¶
func SortDevicesByAddr(devs []Device)
Types ¶
type Device ¶
type Device struct {
Name string
Addr netip.Addr
MAC net.HardwareAddr
DiscoveredAt time.Time
DiscoveredBy DiscoverySource
Meta Meta
Server Server
PerformancePing Pinger
SNMP SNMP
// contains filtered or unexported fields
}
func (Device) DiscoveredAtString ¶
func (Device) FirstSeenString ¶
func (Device) LastPingMaximumString ¶
func (Device) LastPingMeanString ¶
func (Device) LastSeenDurString ¶
func (Device) LastSeenString ¶
func (*Device) SetUpdated ¶
func (d *Device) SetUpdated()
func (*Device) UpdateFromPingStats ¶
func (d *Device) UpdateFromPingStats(stats nettools.Icmp4EchoResponseStatistics, ts time.Time)
type DeviceFilter ¶
DeviceFilter defines a function used to select a set of required devices.
type DiscoverySource ¶
type DiscoverySource string
type EventDeviceAdded ¶
type EventDeviceAdded Device
func (EventDeviceAdded) String ¶
func (nd EventDeviceAdded) String() string
type EventDeviceDiscovered ¶
type EventDeviceDiscovered Device
var EmptyDiscoveredDevice EventDeviceDiscovered
func (EventDeviceDiscovered) String ¶
func (dd EventDeviceDiscovered) String() string
type EventDeviceUpdated ¶
type EventDeviceUpdated Device
func (EventDeviceUpdated) String ¶
func (ude EventDeviceUpdated) String() string
Click to show internal directories.
Click to hide internal directories.