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

Struct randomBalancer

balancer.go:230–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

228}
229
230type randomBalancer struct {
231 mock int // mocked return value, used for testing
232}
233
234func (b randomBalancer) Balance(msg Message, partitions ...int) (partition int) {
235 if b.mock != 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected