Documentation
¶
Index ¶
Constants ¶
View Source
const InterfaceByIndex = 1
View Source
const InterfaceByName = 2
View Source
const InterfaceByPhysAddress = 3
Variables ¶
This section is empty.
Functions ¶
func GetInterfaceIndexKey ¶
func GetInterfaceNameKey ¶
Types ¶
type Host ¶
type Host struct {
Name string
IpAddress string
PingEnabled bool
PingTimeoutSeconds int
PingCount int
PingUseIcmp bool
SnmpEnabled bool
NetInterfaces map[string]*NetInterface
}
func (*Host) AddNetInterfaceByIndex ¶
func (h *Host) AddNetInterfaceByIndex(index int32) *NetInterface
func (*Host) AddNetInterfaceByName ¶
func (h *Host) AddNetInterfaceByName(name string) *NetInterface
func (*Host) AddNetInterfaceByPhysicalAddress ¶
func (h *Host) AddNetInterfaceByPhysicalAddress(physAddress string) *NetInterface
type NetInterface ¶
type NetInterface struct {
Index int32
Name string
PhysAddress string
IdentificationMode int
// contains filtered or unexported fields
}
func (*NetInterface) AddOnIpAddressChangeListener ¶
func (i *NetInterface) AddOnIpAddressChangeListener(eventListener func(event events.HostInterfaceAddressChangeEvent))
func (*NetInterface) OnAddressChangeListeners ¶
func (i *NetInterface) OnAddressChangeListeners() []func(event events.HostInterfaceAddressChangeEvent)
func (*NetInterface) TrackingName ¶
func (i *NetInterface) TrackingName() string
type PluginConfig ¶
type PluginConfig struct {
Hosts []Host
}
Click to show internal directories.
Click to hide internal directories.