WithLazyRefresh configures the Proxy to refresh connection info on an as-needed basis when the cached copy has expired.
()
| 93 | // WithLazyRefresh configures the Proxy to refresh connection info on an |
| 94 | // as-needed basis when the cached copy has expired. |
| 95 | func WithLazyRefresh() Option { |
| 96 | return func(c *Command) { |
| 97 | c.conf.LazyRefresh = true |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | // WithConnRefuseNotify configures the Proxy to call the provided function when |
| 102 | // a connection is refused. The notification function is run in a goroutine. |
no outgoing calls