about summary refs log tree commit diff
path: root/kittybox-rs/src/media/storage
Commit message (Collapse)AuthorAgeFilesLines
* media: fix small files not being saved to disk properlyVika2022-07-191-11/+21
| | | | | It turns out that BufWriter requires calling `flush()` manually and doesn't do it on `drop()`. I forgot about that.
* media: buffer disk I/O and add debug loggingVika2022-07-142-11/+36
| | | | It looks like buffering reads can double my performance. Nice.
* media: fix failing testVika2022-07-101-1/+1
|
* media: media endpoint PoCVika2022-07-102-41/+234
| | | | | | | | | | Supported features: - Streaming upload - Content-addressed storage - Metadata - MIME type (taken from Content-Type) - Length (I could use stat() for this one tho) - filename (for Content-Disposition: attachment, WIP)
* format using rustfmtVika2022-07-072-6/+21
|
* treewide: rewrite using AxumVika2022-07-072-0/+114
Axum has streaming bodies and allows to write simpler code. It also helps enforce stronger types and looks much more neat. This allows me to progress on the media endpoint and add streaming reads and writes to the MediaStore trait. Metrics are temporarily not implemented. Everything else was preserved, and the tests still pass, after adjusting for new calling conventions. TODO: create method routers for protocol endpoints