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

Struct randomPartitioner

partitioner.go:94–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92}
93
94type randomPartitioner struct {
95 generator *rand.Rand
96}
97
98// NewRandomPartitioner returns a Partitioner which chooses a random partition each time.
99func NewRandomPartitioner(topic string) Partitioner {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected