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

Method GetConsumerMetadata

broker.go:472–481  ·  view source on GitHub ↗

GetConsumerMetadata send a consumer metadata request and returns a consumer metadata response or error

(request *ConsumerMetadataRequest)

Source from the content-addressed store, hash-verified

470
471// GetConsumerMetadata send a consumer metadata request and returns a consumer metadata response or error
472func (b *Broker) GetConsumerMetadata(request *ConsumerMetadataRequest) (*ConsumerMetadataResponse, error) {
473 response := new(ConsumerMetadataResponse)
474
475 err := b.sendAndReceive(request, response)
476 if err != nil {
477 return nil, err
478 }
479
480 return response, nil
481}
482
483// FindCoordinator sends a find coordinate request and returns a response or error
484func (b *Broker) FindCoordinator(request *FindCoordinatorRequest) (*FindCoordinatorResponse, error) {

Callers 1

broker_test.goFile · 0.80

Calls 1

sendAndReceiveMethod · 0.95

Tested by

no test coverage detected