about summary refs log tree commit diff
path: root/kittybox-rs/src/media/storage/file.rs
Commit message (Collapse)AuthorAgeFilesLines
* media: media endpoint PoCVika2022-07-101-29/+186
| | | | | | | | | | 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-071-4/+10
|
* treewide: rewrite using AxumVika2022-07-071-0/+61
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