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

Method Controller

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

Controller returns the cluster controller broker. It will return a locally cached value if it's available. You can call RefreshController to update the cached value. Requires Kafka 0.10 or higher.

()

Source from the content-addressed store, hash-verified

30 // locally cached value if it's available. You can call RefreshController
31 // to update the cached value. Requires Kafka 0.10 or higher.
32 Controller() (*Broker, error)
33
34 // RefreshController retrieves the cluster controller from fresh metadata
35 // and stores it in the local cache. Requires Kafka 0.10 or higher.

Callers 3

prepareTestTopicsFunction · 0.95
TestClientControllerFunction · 0.95

Implementers 2

stubLeaderClientasync_producer_test.go
clientclient.go

Calls

no outgoing calls

Tested by 3

prepareTestTopicsFunction · 0.76
TestClientControllerFunction · 0.76