MCPcopy Create free account
hub / github.com/IBM/sarama / AddPartition

Method AddPartition

offset_fetch_request.go:10–15  ·  view source on GitHub ↗
(topic string, partitionID int32)

Source from the content-addressed store, hash-verified

8}
9
10func (g *OffsetFetchRequestGroup) AddPartition(topic string, partitionID int32) {
11 if g.Partitions == nil {
12 g.Partitions = make(map[string][]int32)
13 }
14 g.Partitions[topic] = append(g.Partitions[topic], partitionID)
15}
16
17type OffsetFetchRequest struct {
18 Version int16

Callers 1

AddGroupPartitionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected