3exports.makeConsumerImpl = (kafka, consumerConfig) => kafka.consumer(consumerConfig)
5exports.connectImpl = (consumer) => () => consumer.connect()
7exports.subscribeImpl = (consumer, subscriptionConfig) => () => consumer.subscribe(subscriptionConfig)
9exports.eachBatchImpl = (consumer, eachBatchAutoResolve, handler) => () => {
11 eachBatchAutoResolve: eachBatchAutoResolve,
16 commitOffsetsIfNecessary,
20 const resolveOffsetEff = offset => () => resolveOffset(offset)
21 const commitOffsetsIfNecessaryEff = () => commitOffsetsIfNecessary()
22 const uncommittedOffsetsEff = () => uncommittedOffsets()
23 const isRunningEff = () => isRunning()
24 const isStaleEff = () => isStale()
26 return handler(batch, resolveOffsetEff, heartbeat, commitOffsetsIfNecessaryEff, uncommittedOffsetsEff, isRunningEff, isStaleEff)()
32exports.disconnectImpl = (consumer) => () => consumer.disconnect()
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list