MCPcopy
hub / github.com/segmentio/kafka-go / ConsumerGroup

Struct ConsumerGroup

consumergroup.go:672–680  ·  view source on GitHub ↗

ConsumerGroup models a Kafka consumer group. A caller doesn't interact with the group directly. Rather, they interact with a Generation. Every time a member enters or exits the group, it results in a new Generation. The Generation is where partition assignments and offset management occur. Calle

Source from the content-addressed store, hash-verified

670// Generation is where partition assignments and offset management occur.
671// Callers will use Next to get a handle to the Generation.
672type ConsumerGroup struct {
673 config ConsumerGroupConfig
674 next chan *Generation
675 errs chan error
676
677 closeOnce sync.Once
678 wg sync.WaitGroup
679 done chan struct{}
680}
681
682// Close terminates the current generation by causing this member to leave and
683// releases all local resources used to participate in the consumer group.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected