Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Canary ¶
type Canary struct { Config Config Manifest manifest.Manifest Publishers []Publisher Sensors []sensor.Sensor OutputChan chan sensor.Measurement ReloadChan chan manifest.Manifest }
func (*Canary) SignalHandler ¶
func (c *Canary) SignalHandler()
func (*Canary) StartAutoReload ¶
type Publisher ¶
type Publisher interface {
Publish(sensor.Measurement) error
}
Publisher is the interface that adds the Publish method.
Publish takes a Target, and Sample, and an error, and is expected to deliver that data somewhere.
Click to show internal directories.
Click to hide internal directories.