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)
| 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. |
| 156 | func NewBroker(addr string) *Broker { |
| 157 | return &Broker{id: -1, addr: addr} |
| 158 | } |
| 159 | |
| 160 | func (b *Broker) getSockError() error { |
| 161 | // skip socket health checks while another operation owns broker state |
no outgoing calls