Depends on filestore
library with memcache backend.
Build:
go build
Start the server:
LOG_LEVEL=debug ./fileserver MEMCACHE_HOST:MEMCACHE_PORT
Make requests:
# Store file
curl --data-binary "@/path/to/myfile.dat" http://127.0.0.1:8080/file/myfile.dat
# Retrieve file
curl http://127.0.0.1:8080/file/myfile.dat > myfile.dat
# Delete file
curl -X DELETE -v http://127.0.0.1:8080/file/myfile.dat
cd filestore
go test ./...