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
| 670 | // Generation is where partition assignments and offset management occur. |
| 671 | // Callers will use Next to get a handle to the Generation. |
| 672 | type 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. |
nothing calls this directly
no outgoing calls
no test coverage detected