Copyright | (c) 2016-19 Brian W Bush |
---|---|
License | MIT |
Maintainer | Brian W Bush <code@functionally.io> |
Stability | Production |
Portability | Portable |
Safe Haskell | None |
Language | Haskell2010 |
Produce events on a Kafka topic from standard input.
Synopsis
- keyboardLoop :: TopicConnection -> Sensor -> IO (ExitAction, LoopAction)
Event handling
:: TopicConnection | The Kafka topic name and connection information. |
-> Sensor | The name of the sensor producing events. |
-> IO (ExitAction, LoopAction) | Action to create the exit and loop actions. |
Produce keyboard events on a Kafka topic from standard input.