Registry / networking / samuel-go-zookeeper

samuel-go-zookeeper

JSON →
library0.0.0-20201211165307-7117e9ea2414gogounverified

A Go client library for Apache ZooKeeper.

go get github.com/samuel/go-zookeeper
INSTALL
IMPORT
SIG · SAMUEL-GO-ZOOKEEPE
S
samuel-go-zookeeper
networkinggov0.0.0-20201211165307-7117e9ea2414
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.

zk
github.com/samuel/go-zookeeper

Connects to ZooKeeper and lists root children.

package main import ( "fmt" "github.com/samuel/go-zookeeper/zk" "time" ) func main() { conn, _, err := zk.Connect([]string{"localhost:2181"}, time.Second) if err != nil { panic(err) } defer conn.Close() children, _, err := conn.Children("/") if err != nil { panic(err) } fmt.Println("Root children:", children) }
Debug
Known issues
gotchaPackage is unmaintained; consider using go.etcd.io/etcd/client/v3 or github.com/go-zookeeper/zk
fix
Migrate to actively maintained alternatives
affects: *
Upgrade
Version history
0.0.0-20201211165307-7117e9ea2414latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
14
Meta
1
OpenAI (training)
1
Resources
samuel-go-zookeeper — go get samuel-go-zookeeper · libregistry