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

Struct RangeGroupBalancer

groupbalancer.go:52–52  ·  view source on GitHub ↗

RangeGroupBalancer groups consumers by partition Example: 5 partitions, 2 consumers C0: [0, 1, 2] C1: [3, 4] Example: 6 partitions, 3 consumers C0: [0, 1] C1: [2, 3] C2: [4, 5]

Source from the content-addressed store, hash-verified

50// C2: [4, 5]
51//
52type RangeGroupBalancer struct{}
53
54func (r RangeGroupBalancer) ProtocolName() string {
55 return "range"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected