keyvaluestorage

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

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

Go to latest
Published: Nov 20, 2018 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

KeyValue Storage backend

Build Status codecov Go language Go Report Card

The solution is made of two package. The main storage package, that implements the storage key value engine. The http package, that implements the access through REST api on HTTP transport to the engine Different engine can be built as backend of the REST api Current engine supported: filesystem and memory

Run

$ make build-image
$ docker-compose up

Usage

Parameter Description Value
listener port to use for http (0.0.0.0:80)
provider which storage provider to use (fs|memory)
basedir path storage for filesystem provider

Build

go build -o kvs main.go

Test

go test ./...

Docker

For easy deployment, we've created a Docker container.

docker-compose run keyvaluestorage --provider [fs|memory]

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
⌂ 换网址