-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement/lp refactor download (#753)
* Add initial code of refactor download * Add similar fields * Add functions for getting data and reconstructing * WIP: Separate out get data to vertical and horizontal Vertical can have multiple blocks per read marker Horizontal can have only one block per read mearker * WIP: Add downloadData function Define errors * WIP: Add decrypt function Define more errors Refactor StreamDownld structure * Get refs with path hash and auth ticket * Get stream downloader Get refs with path hash and authticket as well * Fix WIP code/logic. * Fix authticket missing decoding * Add decryption for shared encrypted file * Separate out readCounter sync map in separate file * Fix with set counter * Change read counter to read size * Delete read counter logic implementation * Update with latest changes in readmarker Few fixes and optimization Remove print statements * Remove print statements * Add function to download file from where it left * Uncomment actual code * Modify function parameter * Modify w.r.t. rm changes and handle errors * Fix function return value * Remove unrequired function parameter * Add unit test to refactor download * Add test case for refactor download test * Fix/Rename functions * Add test case for refactor download * Add unit test cases * Add fixes * Add context to downloader * Remove rx_pay * Add support for thumbnail download Remove rx pay * Add support for thumbnail download Remove rx-pay * Add comment * Remove download type as chunk size is fixed. * Rename function * Rename field * Modify reader * Fix issues * Comply reader with io.ReadSeekerCloser interface * Add comment and remove unused variables and constants --------- Co-authored-by: Kishan Dhakan <[email protected]>
- Loading branch information
1 parent
f4760c5
commit 0885b6e
Showing
8 changed files
with
440 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.