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

Function NewTopicConfig

mocks/mocks.go:74–79  ·  view source on GitHub ↗

NewTopicConfig makes a configuration which defaults to 32 partitions for every topic.

()

Source from the content-addressed store, hash-verified

72
73// NewTopicConfig makes a configuration which defaults to 32 partitions for every topic.
74func NewTopicConfig() *TopicConfig {
75 return &TopicConfig{
76 overridePartitions: make(map[string]int32, 0),
77 defaultPartitions: 32,
78 }
79}
80
81// SetDefaultPartitions sets the number of partitions any topic not explicitly configured otherwise
82// (by SetPartitions) will have from the perspective of created partitioners.

Callers 2

NewSyncProducerFunction · 0.85
NewAsyncProducerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected