d06a49eb28
huge changes that need more doucmenting
2023-05-30 18:42:33 +01:00
c60b75bd3b
added upload status
2023-04-16 11:43:46 +01:00
Akilan Selvacoumar
9775525d35
gofmt peernet ( #103 )
2023-02-12 09:59:31 +00:00
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