ErrorHandler is an Option to set the async error handler.
(cb ErrHandler)
| 1326 | |
| 1327 | // ErrorHandler is an Option to set the async error handler. |
| 1328 | func ErrorHandler(cb ErrHandler) Option { |
| 1329 | return func(o *Options) error { |
| 1330 | o.AsyncErrorCB = cb |
| 1331 | return nil |
| 1332 | } |
| 1333 | } |
| 1334 | |
| 1335 | // UserInfo is an Option to set the username and password to |
| 1336 | // use when not included directly in the URLs. |
no outgoing calls