Module

Kafka.Consumer

#Consumer

data Consumer :: Type

#ConsumerConfig

type ConsumerConfig = { autoCommit :: Boolean, groupId :: String, readUncommitted :: Boolean }

#SubscriptionConfig

type SubscriptionConfig = { topic :: String }

#connect

#ConsumerMessage

type ConsumerMessage = { key :: Maybe Buffer, offset :: Offset, value :: Buffer }

#ConsumerBatch

type ConsumerBatch = { fetchedOffset :: Offset, highWatermark :: Offset, messages :: Array ConsumerMessage, partition :: Partition, topic :: Topic }

#Heartbeat

#ResolveOffset

#CommitOffsetsIfNecessary

#OffsetInfo

type OffsetInfo = { topics :: Array { partitions :: Array { offset :: Offset, partition :: Partition }, topic :: Topic } }

#UncommittedOffsets

#IsStale

#IsRunning

#disconnect

Modules