Registry / database / rpcxio-libkv

rpcxio-libkv

JSON →
library0.5.1gogounverified

Go library for distributed key-value stores (etcd, consul, zookeeper).

go get github.com/rpcxio/libkv
INSTALL
IMPORT
SIG · RPCXIO-LIBKV
R
rpcxio-libkv
databasegov0.5.1
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.

libkv
✓ github.com/rpcxio/libkv

Store and retrieve a key-value pair using etcd backend.

package main import ( "fmt" "github.com/rpcxio/libkv" "github.com/rpcxio/libkv/store" "github.com/rpcxio/libkv/store/etcd" ) func main() { etcd.Register() kv, err := libkv.NewStore(store.ETCD, []string{"http://localhost:2379"}, nil) if err != nil { panic(err) } err = kv.Put("key", []byte("value"), nil) if err != nil { panic(err) } pair, _ := kv.Get("key") fmt.Println(string(pair.Value)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
rpcxio-libkv — go get rpcxio-libkv · libregistry