Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface {
GetInformation(ctx context.Context) (*Information, error)
// Heartbeat checks the connectivity
// and returns what state the device is in.
Heartbeat(ctx context.Context) (State, error)
// Power will turn on or off the device
Power(ctx context.Context, on bool) error
}
Device represents an IoT device information
type Information ¶
type List ¶
type MonitoredDevice ¶
type MonitoredDevice interface {
Device
// GetStatstics returns all avaliable statistics from the device
// to be reported back to a telemetry provider
GetStatistics(ctx context.Context) ([]data.Statistic, error)
}
MonitoredDevice allows for the device to report statitics that would be collected by it
Click to show internal directories.
Click to hide internal directories.