Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contact ¶
type Device ¶
type Device struct { LastSeen uint64 Uptime uint64 Model uint8 Firmware string Address string Name string Probes []Probe // contains filtered or unexported fields }
func (*Device) FindProbeById ¶
func (d *Device) FindProbeById(id uint64, group ProbeGroup) (Probe, bool)
type Probe ¶
type Probe struct { PrimaryAddress uint64 SecondaryAddress uint64 Name string Contacts []Contact // contains filtered or unexported fields }
func (*Probe) Group ¶
func (p *Probe) Group() ProbeGroup
func (*Probe) SetContact ¶
type ProbeGroup ¶
type ProbeGroup string
const ( MeterProbeGroup ProbeGroup = "meter" InputProbeGroup ProbeGroup = "input" OutputProbeGroup ProbeGroup = "output" SensorProbeGroup ProbeGroup = "sensor" )
func (ProbeGroup) String ¶
func (t ProbeGroup) String() string
Click to show internal directories.
Click to hide internal directories.