Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 523 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 523 Bytes

File store server

Depends on filestore library with memcache backend.

Usage

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

Testing

cd filestore
go test ./...