bluzelle-go

command module
v0.0.0-...-a60bcac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

README

Bluzelle-go

Build Status codecov GoDoc Gitter chat

About bluzelle-go

bluzelle-go is a go client built on top of WebSocket API that connect to Bluzelle SwarmDB for basic CRUD operations. Under active development to support Bernoulli release.

Getting Started

  • Installation
go get github.com/wlwanpan/bluzelle-go
  • Compile protobuf
protoc -I=proto/proto --go_out=cproto proto/proto/*.proto
  • Import
import "github.com/wlwanpan/bluzelle-go"
  • Initialize
blz := blz.Connect("127.0.0.1", 51010, "80174b53-2dda-49f1-9d6a-6a780d4")

List of API

  • Create
err := blz.Create("key1", []byte("value1"))
  • Read
value, err := blz.Read("key1")
  • Update
err := blz.Update("key1", []byte("value2"))
  • Remove
err := blz.Remove("key1")
  • Has
has, err := blz.Has("key1")
  • Keys
keys, err := blz.Keys()
  • Size
size, err := blz.Size()

Reference

Visit the official bluzelle documentation

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL