ClosedHandler is an Option to set the closed handler.
(cb ConnHandler)
| 1310 | |
| 1311 | // ClosedHandler is an Option to set the closed handler. |
| 1312 | func ClosedHandler(cb ConnHandler) Option { |
| 1313 | return func(o *Options) error { |
| 1314 | o.ClosedCB = cb |
| 1315 | return nil |
| 1316 | } |
| 1317 | } |
| 1318 | |
| 1319 | // DiscoveredServersHandler is an Option to set the new servers handler. |
| 1320 | func DiscoveredServersHandler(cb ConnHandler) Option { |
no outgoing calls