Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IHarvester ¶
type IHarvester interface { ListenTo(chan []byte) // wrap with a structure? GetMessagesChannel() chan IMessage }
IHarvester is common interface for a sensor
type IMessage ¶
type IMessage interface { // ReportToRedisStream writes data to Redis Stream ReportToRedisStream(*redis.Client, string) error // ReportToLog sends message to standard log system ReportToLog() // ToString returns string representations ToString() string }
IMessage is a data message from sensor, visitor pattern
Click to show internal directories.
Click to hide internal directories.