Derrick Hammer
|
bf36562fca
|
feat: create upload record after sending to renterd
|
2024-01-22 18:25:11 -05:00 |
Derrick Hammer
|
3fcb897e7a
|
fix: need to borrow the check from finishUploadIfComplete and invert it
|
2024-01-22 18:02:15 -05:00 |
Derrick Hammer
|
941ce27293
|
fix: only process completed upload if its final
|
2024-01-22 17:49:42 -05:00 |
Derrick Hammer
|
e0c6c88e75
|
feat: add TusUploadCompleted method
|
2024-01-22 17:49:03 -05:00 |
Derrick Hammer
|
aab4bb4d69
|
refactor: add completed column to tus_upload
|
2024-01-22 17:48:32 -05:00 |
Derrick Hammer
|
35cd041978
|
fix: can't use JapeMiddlewareFunc in type switch to cast
|
2024-01-22 17:06:39 -05:00 |
Derrick Hammer
|
2020a9f1d1
|
fix: change HttpMiddlewareFunc to not have a variable name
|
2024-01-22 17:03:54 -05:00 |
Derrick Hammer
|
6402410d75
|
fix: use HttpMiddlewareFunc
|
2024-01-22 17:00:57 -05:00 |
Derrick Hammer
|
2cc600b78b
|
fix: api routes need to use ApplyMiddlewares
|
2024-01-22 16:59:14 -05:00 |
Derrick Hammer
|
527334f829
|
refactor: create generic AdaptMiddleware factory and change ApplyMiddlewares to take interfaces and handle multiple situations
|
2024-01-22 16:50:03 -05:00 |
Derrick Hammer
|
dd857650e0
|
fix: need create a compound index on hash and deleted at
|
2024-01-21 01:41:04 -05:00 |
Derrick Hammer
|
d86e0e0105
|
fix: need to use where
|
2024-01-21 01:06:14 -05:00 |
Derrick Hammer
|
e0de290cff
|
fix: pass model protocol property
|
2024-01-21 00:48:50 -05:00 |
Derrick Hammer
|
3e0246df28
|
fix: set client timeout to a high number for now
|
2024-01-21 00:19:04 -05:00 |
Derrick Hammer
|
ed15133659
|
dep: upgrade to 1.21
|
2024-01-21 00:09:11 -05:00 |
Derrick Hammer
|
ae4901757b
|
fix: log PutFile error
|
2024-01-21 00:08:49 -05:00 |
Derrick Hammer
|
e73fa0a103
|
refactor: switch to github.com/imroc/req as go-resty can't handle streaming uploads
|
2024-01-20 23:36:55 -05:00 |
Derrick Hammer
|
c2cccc4b84
|
fix: pass bucket as query arg, not as form data
|
2024-01-20 22:51:00 -05:00 |
Derrick Hammer
|
6bee380e75
|
fix: retain only the 1st 32 bytes
|
2024-01-20 12:30:18 -05:00 |
Derrick Hammer
|
bcf2998faa
|
fix: need to get a new reader to stream the file
|
2024-01-20 12:26:31 -05:00 |
Derrick Hammer
|
7d80efb278
|
Revert "fix: start cron in new coroutine"
This reverts commit 08e034b1
|
2024-01-20 12:18:43 -05:00 |
Derrick Hammer
|
3a74e75a57
|
fix: portal missing in constructor
|
2024-01-20 12:05:41 -05:00 |
Derrick Hammer
|
521b37b642
|
debug: debug scheduler
|
2024-01-20 12:02:03 -05:00 |
Derrick Hammer
|
08e034b1cf
|
fix: start cron in new coroutine
|
2024-01-20 11:48:10 -05:00 |
Derrick Hammer
|
b10798d71f
|
fix: update TusLock to use a compound unique index to work with soft deletes
|
2024-01-20 11:47:44 -05:00 |
Derrick Hammer
|
43c4590439
|
refactor: use time.Ticker
|
2024-01-20 11:16:54 -05:00 |
Derrick Hammer
|
ea4a22c52d
|
fix: remove duplicate chan close
|
2024-01-20 11:07:06 -05:00 |
Derrick Hammer
|
6bbfac661a
|
fix: call released on ctx done
|
2024-01-20 11:06:50 -05:00 |
Derrick Hammer
|
112fbb4c51
|
refactor: moved anon func to private released method
|
2024-01-20 11:04:43 -05:00 |
Derrick Hammer
|
5465cf7a63
|
fix: RequestRelease needs to be inside for, but after we check for a non-busy error
|
2024-01-20 10:48:42 -05:00 |
Derrick Hammer
|
60e917120d
|
fix: only add slash if path is empty
|
2024-01-20 10:37:33 -05:00 |
Derrick Hammer
|
c5b0865977
|
fix: need to create a custom version of strip prefix that appends a trailing slash for the router
|
2024-01-20 10:33:18 -05:00 |
Derrick Hammer
|
9f7f819369
|
dep: update tus
|
2024-01-20 10:15:44 -05:00 |
Derrick Hammer
|
e201f97e0b
|
dep: replace tus with fork
|
2024-01-20 10:10:48 -05:00 |
Derrick Hammer
|
75e7ba00cd
|
fix: query needs to be manually built and re-encoded
|
2024-01-20 08:22:51 -05:00 |
Derrick Hammer
|
07c36109d8
|
refactor: move strip prefix to be last
|
2024-01-20 08:15:27 -05:00 |
Derrick Hammer
|
24e841ae97
|
fix: use new copy of request
|
2024-01-20 08:13:17 -05:00 |
Derrick Hammer
|
a1e7cda659
|
refactor: move injectJwt to be processed after authMiddlewareFunc
|
2024-01-20 08:12:50 -05:00 |
Derrick Hammer
|
9bf10b19bf
|
refactor: add current request to tusJwtResponseWriter
|
2024-01-20 08:12:30 -05:00 |
Derrick Hammer
|
73fa265939
|
feat: implement tusJwtResponseWriter WriteHeader
|
2024-01-20 08:06:50 -05:00 |
Derrick Hammer
|
a56fa20b6d
|
refactor: split findAuthToken to parseAuthTokenHeader
|
2024-01-20 08:03:26 -05:00 |
Derrick Hammer
|
1d1c552a0a
|
refactor: explicitly check the path and only for post
|
2024-01-20 07:57:09 -05:00 |
Derrick Hammer
|
a2051acff1
|
feat: add initial tusJwtResponseWriter bones so we can append the auth_token to tus urls
|
2024-01-20 07:54:24 -05:00 |
Derrick Hammer
|
4378da70da
|
refactor: create and export GenerateTokenWithDuration and GenerateToken
|
2024-01-20 07:30:46 -05:00 |
Derrick Hammer
|
8c86ecc5b7
|
fix: TusUploadExists needs to operate on TusUpload not Upload
|
2024-01-20 07:05:27 -05:00 |
Derrick Hammer
|
e8fbe46dfc
|
fix: uploaderID is uint64
|
2024-01-20 06:57:57 -05:00 |
Derrick Hammer
|
0ab70dcaa5
|
fix: if we have errors at the CreatedUploads hook, cancel the upload
|
2024-01-20 06:41:51 -05:00 |
Derrick Hammer
|
af5b6241bf
|
fix: NotifyCreatedUploads needs to be enabled
|
2024-01-20 06:27:11 -05:00 |
Derrick Hammer
|
b50c6c9f85
|
fix: dont put leading slash in prefix
|
2024-01-20 06:03:07 -05:00 |
Derrick Hammer
|
43e52e1ae1
|
fix: wrong prefix
|
2024-01-20 06:01:42 -05:00 |