Package Usage: go: go.etcd.io/etcd/client/v3
Package clientv3 implements the official Go etcd client for v3.
Create client using `clientv3.New`:
Make sure to close the client after using it. If the client is not closed, the
connection will have leaky goroutines.
To specify a client request timeout, wrap the context with context.WithTimeout:
The Client has internal state (watchers and leases), so Clients should be reused instead of created as needed.
Clients are safe for concurrent use by multiple goroutines.
etcd client returns 2 types of errors:
See https://github.com/etcd-io/etcd/blob/main/api/v3rpc/rpctypes/error.go
Here is the example code to handle client errors:
The grpc load balancer is registered statically and is shared across etcd clients.
To enable detailed load balancer logging, set the ETCD_CLIENT_DEBUG environment
variable. E.g. "ETCD_CLIENT_DEBUG=1".
24 versions
Latest release: environ un an ago
5 154 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/go.etcd.io/etcd/client/v3
Dependent Repos 5
cea-hpc/sshproxy
Proxy SSH connections on a gatewaySize: 9,34 Mo - Last synced: 1 jour ago - Pushed: 18 jours ago

web-et-numerique/factory/llle_project/cozy-stack
Fork of cozy-stack https://github.com/cozy/cozy-stackLast synced: 7 mois ago


