Registry / database / coreos-go-etcd

coreos-go-etcd

JSON →
library2.0.0+incompatiblegogounverified

Package go-etcd is a legacy client library for etcd v2.

go get github.com/coreos/go-etcd
INSTALL
IMPORT
SIG · COREOS-GO-ETCD
C
coreos-go-etcd
databasegov2.0.0+incompatible
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

etcd
github.com/coreos/go-etcd/etcd

Connect to etcd v2 and get a key.

package main import ( "fmt" "github.com/coreos/go-etcd/etcd" ) func main() { client := etcd.NewClient([]string{"http://127.0.0.1:4001"}) resp, _ := client.Get("/foo", false, false) fmt.Println(resp.Node.Value) }
Debug
Known issues
breakingThis library is for etcd v2 only; etcd v3 uses a different client.
fix
Use go.etcd.io/etcd/client/v3 for etcd v3.
affects: >=2.0.0
Upgrade
Version history
2.0.0+incompatiblelatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
25 hits · last 30 days
node
14
OpenAI (training)
1
Resources
coreos-go-etcd — go get coreos-go-etcd · libregistry