DiscoveredServersHandler is an Option to set the new servers handler.
(cb ConnHandler)
| 1318 | |
| 1319 | // DiscoveredServersHandler is an Option to set the new servers handler. |
| 1320 | func DiscoveredServersHandler(cb ConnHandler) Option { |
| 1321 | return func(o *Options) error { |
| 1322 | o.DiscoveredServersCB = cb |
| 1323 | return nil |
| 1324 | } |
| 1325 | } |
| 1326 | |
| 1327 | // ErrorHandler is an Option to set the async error handler. |
| 1328 | func ErrorHandler(cb ErrHandler) Option { |
no outgoing calls