9 Commits

Author SHA1 Message Date
Kleissner
ee22bf641a Warehouse.FileExists return fileSize instead of fileInfo 2022-02-21 22:35:20 +01:00
Kleissner
86cf8e1fe8 Improve performance of Warehouse.ReadFile by detecting file not found error via os.Open, instead of wh.FileExists which is a very expensive function. 2022-01-17 15:39:39 +01:00
Kleissner
05a31cf3af Warehouse: Automatically create .merkle companion files to store the entire merkle tree. Close #48
Pregenerating this means that fragments can be serve immediately with 0 hash calculation needed.
2021-11-28 21:52:30 +01:00
Kleissner
d64f8b19fb webapi: New function /warehouse/read/path to read a file from warehouse to disk 2021-11-26 08:53:42 +01:00
Kleissner
b5266b1c52 File Transfer: Add header to file transfer to indicate file size and transfer size. This is important to know when to stop reading. It will also help when reading only ranges (which is important for video streaming).
New function FileTransferReadHeaderUDT to read the header.
Warehouse: ReadFile return count bytes read
2021-10-25 03:34:28 +02:00
Kleissner
2659921cb8 warehouse: Minor refactoring. Use native hash encoding for FileExists. 2021-10-22 00:21:59 +02:00
Kleissner
e45d6fe888 New function to delete account. Create deletion functions for blockchain and warehouse. Add function /account/delete to webapi. Close #42 2021-10-20 08:46:53 +02:00
Kleissner
335f83d79b /blockchain/self/add/file checks now if the file exists in the Warehouse and aborts with StatusCorruptBlockRecord if not. 2021-10-13 02:42:04 +02:00
Kleissner
cec070b740 Introducing Warehouse - the store for files shared by the user.
New endpoints:
/warehouse/create               Create a file in the warehouse
/warehouse/create/path          Create a file in the warehouse via copy
/warehouse/read                 Read a file in the warehouse
/warehouse/delete               Delete a file in the warehouse
2021-10-13 01:40:58 +02:00