Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Measurement ¶
type Measurement struct { Target sampler.Target Sample sampler.Sample IsOK bool StateCount int Error error }
Measurement reprents an aggregate of Target, Sample and error.
type Sensor ¶
type Sensor struct { Target sampler.Target C chan Measurement StateCounter int StopChan chan int IsStopped bool StopNotifyChan chan bool IsOK bool Timeout int // timeout in secs }
Sensor is capable of repeatedly measuring a given Target with a specific Sampler, and returns those results over channel C.
Click to show internal directories.
Click to hide internal directories.