Module
Kafka.Consumer 
- Package
- purescript-kafkajs
- Repository
- HivemindTechnologies/purescript-kafkajs
#ConsumerConfig Source
type ConsumerConfig = { autoCommit :: Boolean, groupId :: String, readUncommitted :: Boolean }#SubscriptionConfig Source
type SubscriptionConfig = { topic :: String }#makeConsumer Source
makeConsumer :: Kafka -> ConsumerConfig -> Consumer#ConsumerMessage Source
type ConsumerMessage = { key :: Maybe Buffer, offset :: Offset, value :: Buffer }#ConsumerBatch Source
type ConsumerBatch = { fetchedOffset :: Offset, highWatermark :: Offset, messages :: Array ConsumerMessage, partition :: Partition, topic :: Topic }#CommitOffsetsIfNecessary Source
type CommitOffsetsIfNecessary = Aff Unit#UncommittedOffsets Source
type UncommittedOffsets = Effect OffsetInfo#EachBatch Source
type EachBatch = ConsumerBatch -> ResolveOffset -> Heartbeat -> CommitOffsetsIfNecessary -> UncommittedOffsets -> IsRunning -> IsStale -> (Aff Unit)