simple-kvdb

command module
v0.0.0-...-5d2cf65 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: MIT Imports: 12 Imported by: 0

README

simple-kvdb

Very basic Key-Value store with REST API and UI based on BoldDB

Build

A simple build script which pulls the dependency and builds the binary

cd $GOPATH/src/github.com/vigorcrust/simple-kvdb
go run build.go

REST API Usage

List buckets
curl -X GET http://localhost:8081/api/

[{"bucket":"bucket1"}, {"bucket":"bucket2"}]
Create bucket
curl -X POST http://localhost:8081/api/bucket3
Delete bucket
curl -X DELETE http://localhost:8081/api/bucket3
List Key-Value pairs
curl -X GET http://localhost:8081/api/bucket1

[{"key":"key1","value":"value1"},{"key":"key2","value":"value2"}]
Create Key-Value pair
curl -X POST http://localhost:8081/api/bucket1/key1/value1
Delete Key-Value pair
curl -X DELETE http://localhost:8081/api/bucket1/key1
Get value
curl -X GET http://localhost:8081/api/bucket1/key1

{"value":"value1"}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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