kaz-as / zip

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About


Languages

Language:Go 97.9%Language:Makefile 1.5%Language:Dockerfile 0.6%