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

Function NewBroker

broker.go:156–158  ·  view source on GitHub ↗

NewBroker creates and returns a Broker targeting the given host:port address. This does not attempt to actually connect, you have to call Open() for that.

(addr string)

Source from the content-addressed store, hash-verified

154// NewBroker creates and returns a Broker targeting the given host:port address.
155// This does not attempt to actually connect, you have to call Open() for that.
156func NewBroker(addr string) *Broker {
157 return &Broker{id: -1, addr: addr}
158}
159
160func (b *Broker) getSockError() error {
161 // skip socket health checks while another operation owns broker state

Callers 15

ExampleBrokerFunction · 0.85
TestBrokerAccessorsFunction · 0.85
TestBrokerFailedRequestFunction · 0.85
TestBrokerCloseFunction · 0.85
TestBrokerFetchFunction · 0.85
TestSASLOAuthBearerFunction · 0.85
TestSASLSCRAMSHAXXXFunction · 0.85
TestSASLPlainAuthFunction · 0.85
TestSASLReadTimeoutFunction · 0.85

Calls

no outgoing calls

Tested by 15

ExampleBrokerFunction · 0.68
TestBrokerAccessorsFunction · 0.68
TestBrokerFailedRequestFunction · 0.68
TestBrokerCloseFunction · 0.68
TestBrokerFetchFunction · 0.68
TestSASLOAuthBearerFunction · 0.68
TestSASLSCRAMSHAXXXFunction · 0.68
TestSASLPlainAuthFunction · 0.68
TestSASLReadTimeoutFunction · 0.68