Commit Graph

1016 Commits

Author SHA1 Message Date
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
Derrick Hammer af0f3e19de
refactor: switch to using Supply 2024-02-17 03:12:44 -05:00
Derrick Hammer 24694ecbae
feat: create new swagger package 2024-02-17 03:05:22 -05:00
Derrick Hammer 3b9f4bbe3d
feat: add MergeRoutes 2024-02-17 03:04:27 -05:00
Derrick Hammer 7c330e308e
refactor: allow Routes to return an error 2024-02-17 03:04:15 -05:00
Derrick Hammer f34c041401
fix: UploadExists/GetUpload needs ctx 2024-02-17 02:39:42 -05:00
Derrick Hammer a5f0a4bfcc
fix: GetUploadReader needs ctx 2024-02-17 02:38:07 -05:00
Derrick Hammer c452b0c271
refactor: add context 2024-02-17 02:37:52 -05:00
Derrick Hammer b231f9d769
refactor: need to alias as interface 2024-02-17 02:36:27 -05:00
Derrick Hammer 6845dac609
refactor: add context to all tus apis 2024-02-16 22:08:34 -05:00
Derrick Hammer c468a81543
refactor: remove tus out of method names 2024-02-16 22:03:34 -05:00
Derrick Hammer 93e727ab3b
refactor: epic protocol and storage design refactor 2024-02-16 22:00:53 -05:00