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

Method GetMetadata

broker.go:448–458  ·  view source on GitHub ↗

GetMetadata send a metadata request and returns a metadata response or error

(request *MetadataRequest)

Source from the content-addressed store, hash-verified

446
447// GetMetadata send a metadata request and returns a metadata response or error
448func (b *Broker) GetMetadata(request *MetadataRequest) (*MetadataResponse, error) {
449 response := new(MetadataResponse)
450 response.Version = request.Version // Required to ensure use of the correct response header version
451
452 err := b.sendAndReceive(request, response)
453 if err != nil {
454 return nil, err
455 }
456
457 return response, nil
458}
459
460func (b *Broker) DescribeCluster(request *DescribeClusterRequest) (*DescribeClusterResponse, error) {
461 response := new(DescribeClusterResponse)

Callers 10

ExampleBrokerFunction · 0.95
prepareTestTopicsFunction · 0.80
ensureFullyReplicatedFunction · 0.80
broker_test.goFile · 0.80
DescribeTopicsMethod · 0.80
ListTopicsMethod · 0.80
tryRefreshMetadataMethod · 0.80

Calls 1

sendAndReceiveMethod · 0.95