Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 1.06 KB

README.md

File metadata and controls

45 lines (31 loc) · 1.06 KB

Zip archives processor

Overview

This is an API for zipping (with output archive streaming) and unzipping (with chunk uploading).

To read documentation and try requests, run make run from zip-go container. Docs will be at http://localhost:8080/docs

Generate code from documentation

Run make gen from zip-gen container.

Do not create files restapi/configure_zip.go, restapi/server.go by your own: they are deleted by make gen.

Migrations

Should be run from zip-go container.

Up:

make migrate.up

Down:

make migrate.down

Status:

make migrate.status

Create new migration with name new123:

make migrate.new migration_name=new123

TODO

  1. Add integration and many unit tests, make the product ready to minimal use, fix bugs - to 16 January.
  2. Add read/write timeouts to all file descriptors.
  3. Extract async part (unzipping) from handler set.
  4. Check idempotency of archive initialization: it probably is idempotent, but it should not create a huge file on the hard drive on the init request.