Commit Graph

1177 Commits

Author SHA1 Message Date
Derrick Hammer b4f8a1979b
fix: PROOF_EXTENSION already has file dot 2024-02-18 02:57:10 -05:00
Derrick Hammer 418cdf7836
fix: need to use a reader for mime detection 2024-02-18 02:44:57 -05:00
Derrick Hammer e435e6ded5
fix: need to return muReader early 2024-02-18 02:38:17 -05:00
Derrick Hammer 0e61a5c1fa
chore: dont log proof, too large 2024-02-18 02:29:33 -05:00
Derrick Hammer 938b6cdf9e
fix: store buf outside for loop 2024-02-18 02:29:15 -05:00
Derrick Hammer bff0981731
fix: use write_all 2024-02-18 02:25:13 -05:00
Derrick Hammer 0873dee1f3
fix: use a background ctx 2024-02-18 00:27:19 -05:00
Derrick Hammer 88a636ba9c
refactor: pass only the upload hash to the cron task 2024-02-18 00:23:25 -05:00
Derrick Hammer 15750acec0
fix: check for error 2024-02-18 00:04:28 -05:00
Derrick Hammer 8a32e69b06
fix: use storageProtocol 2024-02-18 00:01:01 -05:00
Derrick Hammer 517abe9193
fix: unneeded cast 2024-02-18 00:00:02 -05:00
Derrick Hammer 16ed748bfb
fix: cast to uint not uint64 2024-02-17 23:58:31 -05:00
Derrick Hammer 2ce26239da
fix: add missing tus background worker 2024-02-17 23:55:25 -05:00
Derrick Hammer 445084ca5b
fix: remove rows effected check 2024-02-17 23:42:32 -05:00
Derrick Hammer 9e35c614e3
refactor: change SaveUpload to use gorm create or selective Updates 2024-02-17 23:39:51 -05:00
Derrick Hammer 8f78f6fe87
fix: metadata service not passed in construction 2024-02-17 23:27:37 -05:00
Derrick Hammer fc042570ab
refactor: change to store the hash as a raw, but also make it unique with an index 2024-02-17 23:17:26 -05:00
Derrick Hammer a20b79ff90
fix: forgot to return UploadMetadata 2024-02-17 22:59:34 -05:00
Derrick Hammer cfb0abf81a
fix: try to fetch the upload by hash, and if no error, return the upload meta 2024-02-17 22:54:44 -05:00
Derrick Hammer 84a78b7a7e
fix: use realKey 2024-02-17 20:25:30 -05:00
Derrick Hammer 0cb1f96813
fix: bug fix exists 2024-02-17 20:19:00 -05:00
Derrick Hammer 484b9ac583
fix: missing returning the claim 2024-02-17 20:16:19 -05:00
Derrick Hammer 7ec03524ed
fix: need to pass the claim by ref 2024-02-17 20:12:49 -05:00
Derrick Hammer fc1dd491d6
fix: need to use the claim by ref 2024-02-17 20:07:43 -05:00
Derrick Hammer 2fd3368b5a
fix: trim bearer in lowercase 2024-02-17 19:48:28 -05:00
Derrick Hammer ca559eccc5
chore: remove AccountErrorNil 2024-02-17 09:02:17 -05:00
Derrick Hammer bbf8ec79d3
refactor: change info to be the model struct 2024-02-17 09:02:04 -05:00
Derrick Hammer 11f30700c3
fix: use tx.Statement.Changed to ensure email is being changed before validating it 2024-02-17 09:00:44 -05:00
Derrick Hammer c076d219d0
refactor: move checking of users name to api layer 2024-02-17 08:45:06 -05:00
Derrick Hammer a546089378
refactor: account api needs to use the error interface 2024-02-17 08:14:58 -05:00
Derrick Hammer 162af1e274
refactor: switch to using package init functions with build tags to selectively build protocol support 2024-02-17 07:40:22 -05:00
Derrick Hammer f73ad52864
feat: add support for resuming an existing upload 2024-02-17 06:37:58 -05:00
Derrick Hammer 3ded11d705
fix: HttpMiddlewareFunc needs its own case 2024-02-17 05:38:50 -05:00
Derrick Hammer 9949dae5e8
fix: add HttpMiddlewareFunc to switch case 2024-02-17 05:28:56 -05:00
Derrick Hammer d4be04eae9
fix: need to use a param struct 2024-02-17 05:23:33 -05:00
Derrick Hammer ac9a1a0b92
feat: implement StorageProtocol 2024-02-17 05:20:42 -05:00
Derrick Hammer 263473db41
refactor: add PreInit and Node setter to store s5 node 2024-02-17 05:16:52 -05:00
Derrick Hammer 997e362d90
refactor: add concept of a pre-init function that gets called before init 2024-02-17 05:16:24 -05:00
Derrick Hammer 0ac4d318b7
refactor: use a lazy setter approach for storageProtocol 2024-02-17 04:41:12 -05:00
Derrick Hammer 97297036c7
refactor: swap Protocol for to StorageProtocol 2024-02-17 04:06:25 -05:00
Derrick Hammer b52383b123
refactor: add StorageProtocol to S5ProtocolResult 2024-02-17 04:05:42 -05:00
Derrick Hammer 6f3f6015fe
fix: TusHandlerParams missing fx.In 2024-02-17 03:38:44 -05:00
Derrick Hammer 407114f527
fix: missing components in construction 2024-02-17 03:36:18 -05:00
Derrick Hammer 64492713f7
fix: Metadata needs to be exported 2024-02-17 03:35:51 -05:00
Derrick Hammer cdd458129b
fix: initParams missing fx.In 2024-02-17 03:33:55 -05:00
Derrick Hammer 76025f0a8a
fix: StorageServiceParams missing fx.In 2024-02-17 03:33:44 -05:00
Derrick Hammer 857ffe4fdd
refactor: need to use a param struct to get protocol value group 2024-02-17 03:28:05 -05:00
Derrick Hammer afc0b7a343
refactor: replicate what we did in api and remove the need for an InitFunc 2024-02-17 03:24:44 -05:00
Derrick Hammer 12a5f3f631
fix: missing fx.Annotate 2024-02-17 03:21:27 -05:00
Derrick Hammer 30b18a4ced
fix: update Routes signature 2024-02-17 03:14:17 -05:00