NewClient returns an xDS client with the given name from the pool. If the client doesn't already exist, it creates a new xDS client and adds it to the pool. The second return value represents a close function which the caller is expected to invoke once they are done using the client. It is safe fo
(name string, metricsRecorder estats.MetricsRecorder)
| 115 | // expected to invoke once they are done using the client. It is safe for the |
| 116 | // caller to invoke this close function multiple times. |
| 117 | func (p *Pool) NewClient(name string, metricsRecorder estats.MetricsRecorder) (XDSClient, func(), error) { |
| 118 | return p.newRefCounted(name, metricsRecorder, defaultWatchExpiryTimeout, nil) |
| 119 | } |
| 120 | |
| 121 | // NewClientForTesting returns an xDS client configured with the provided |
| 122 | // options from the pool. If the client doesn't already exist, it creates a new |