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

Method Leader

client.go:57–57  ·  view source on GitHub ↗

Leader returns the broker object that is the leader of the current topic/partition, as determined by querying the cluster metadata.

(topic string, partitionID int32)

Source from the content-addressed store, hash-verified

55 // Leader returns the broker object that is the leader of the current
56 // topic/partition, as determined by querying the cluster metadata.
57 Leader(topic string, partitionID int32) (*Broker, error)
58
59 // LeaderAndEpoch returns the leader and its epoch for the current
60 // topic/partition, as determined by querying the cluster metadata.

Implementers 2

stubLeaderClientasync_producer_test.go
clientclient.go

Calls

no outgoing calls