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)
| 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. |
no outgoing calls