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

Method NewClientV3

tests/framework/integration/cluster.go:1512–1514  ·  view source on GitHub ↗

NewClientV3 creates a new grpc client connection to the member

(memberIndex int)

Source from the content-addressed store, hash-verified

1510
1511// NewClientV3 creates a new grpc client connection to the member
1512func (c *Cluster) NewClientV3(memberIndex int) (*clientv3.Client, error) {
1513 return NewClientV3(c.Members[memberIndex])
1514}
1515
1516func makeClients(t testutil.TB, clus *Cluster, clients *[]*clientv3.Client, chooseMemberIndex func() int) func() *clientv3.Client {
1517 var mu sync.Mutex

Calls 1

NewClientV3Function · 0.85