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
$ make build-image
$ docker-compose up
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 |
go build -o kvs main.go
go test ./...
For easy deployment, we've created a Docker container.
docker-compose run keyvaluestorage --provider [fs|memory]