MCPcopy
hub / github.com/etcd-io/etcd / Endpoints

Method Endpoints

client/v3/client.go:168–175  ·  view source on GitHub ↗

Endpoints lists the registered endpoints for the client.

()

Source from the content-addressed store, hash-verified

166
167// Endpoints lists the registered endpoints for the client.
168func (c *Client) Endpoints() []string {
169 // copy the slice; protect original endpoints from being changed
170 c.epMu.RLock()
171 defer c.epMu.RUnlock()
172 eps := make([]string, len(c.endpoints))
173 copy(eps, c.endpoints)
174 return eps
175}
176
177// SetEndpoints updates client's endpoints.
178func (c *Client) SetEndpoints(eps ...string) {

Callers 6

TestSyncFiltersMembersFunction · 0.95
dialWithBalancerMethod · 0.95
checkVersionMethod · 0.95
TestV3AuthWithLeaseRenewFunction · 0.95

Calls 2

RLockMethod · 0.65
RUnlockMethod · 0.65

Tested by 3

TestSyncFiltersMembersFunction · 0.76
TestV3AuthWithLeaseRenewFunction · 0.76