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

Struct consumer

consumer.go:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100const partitionConsumersBatchTimeout = 100 * time.Millisecond
101
102type consumer struct {
103 conf *Config
104 children map[string]map[int32]*partitionConsumer
105 brokerConsumers map[*Broker]*brokerConsumer
106 client Client
107 metricRegistry metrics.Registry
108 lock sync.Mutex
109}
110
111// NewConsumer creates a new consumer using the given broker addresses and configuration.
112func NewConsumer(addrs []string, config *Config) (Consumer, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected