Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/etcd-io/etcd
/ RandClient
Method
RandClient
tests/framework/integration/cluster.go:1444–1446 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1442
}
1443
1444
func
(c *Cluster) RandClient() *clientv3.Client {
1445
return
c.Members[rand.Intn(len(c.Members))].Client
1446
}
1447
1448
func
(c *Cluster) Client(i int) *clientv3.Client {
1449
return
c.Members[i].Client
Callers
15
TestElectionSessionRecampaign
Function · 0.95
TestElectionOnPrefixOfExistingKey
Function · 0.95
TestElectionOnSessionRestart
Function · 0.95
TestV3ElectionCampaign
Function · 0.95
TestV3ElectionObserve
Function · 0.95
TestV3LeasePromote
Function · 0.95
TestV3LeaseGrantByID
Function · 0.95
TestV3LeaseNegativeID
Function · 0.95
TestV3LeaseCheckpoint
Function · 0.95
TestV3LeaseExists
Function · 0.95
TestV3LeaseLeases
Function · 0.95
TestV3PutOnNonExistLease
Function · 0.95
Calls
no outgoing calls
Tested by
15
TestElectionSessionRecampaign
Function · 0.76
TestElectionOnPrefixOfExistingKey
Function · 0.76
TestElectionOnSessionRestart
Function · 0.76
TestV3ElectionCampaign
Function · 0.76
TestV3ElectionObserve
Function · 0.76
TestV3LeasePromote
Function · 0.76
TestV3LeaseGrantByID
Function · 0.76
TestV3LeaseNegativeID
Function · 0.76
TestV3LeaseCheckpoint
Function · 0.76
TestV3LeaseExists
Function · 0.76
TestV3LeaseLeases
Function · 0.76
TestV3PutOnNonExistLease
Function · 0.76