MCPcopy
hub / github.com/IBM/sarama / Consume

Method Consume

consumer_group.go:61–61  ·  view source on GitHub ↗

Consume joins a cluster of consumers for a given list of topics and starts a blocking ConsumerGroupSession through the ConsumerGroupHandler. The life-cycle of a session is represented by the following steps: 1. The consumers join the group (as explained in https://kafka.apache.org/documentation/#i

(ctx context.Context, topics []string, handler ConsumerGroupHandler)

Source from the content-addressed store, hash-verified

59 // server-side rebalance happens, the consumer session will need to be
60 // recreated to get the new claims.
61 Consume(ctx context.Context, topics []string, handler ConsumerGroupHandler) error
62
63 // Errors returns a read channel of errors that occurred during the consumer life-cycle.
64 // By default, errors are logged and not returned over this channel.

Callers 10

ExampleConsumerGroupFunction · 0.95
TestConsumerGroupReasonFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
loopMethod · 0.65

Implementers 1

consumerGroupconsumer_group.go

Calls

no outgoing calls