added expire check code + db iterator func

This commit is contained in:
2023-03-01 16:28:53 +01:00
parent 84bef91657
commit d4f2d6eb76
5 changed files with 128 additions and 4 deletions

View File

@@ -3,9 +3,8 @@ Simple standalone file upload server with api and cli
## TODO
- decouple db and http code in Runserver()
- store ts
- implement goroutine to expire after 1d, 10m etc
implemented. add go routine to server, use Db.Iter()
- use bolt db to retrieve list of items to expire
- also serve a html upload page
- add auth options (access key, users, roles, oauth2)
@@ -15,7 +14,6 @@ Simple standalone file upload server with api and cli
- create cobra client commands (upload, list, delete, edit)
## curl commands
### upload