Derrick Hammer
|
e09e51bb52
|
fix: wrap Register api in an atomic transaction to avoid dead locks
|
2023-08-04 11:51:18 -04:00 |
Derrick Hammer
|
dff3ca4589
|
fix: add missing request connection close
|
2023-08-04 11:46:25 -04:00 |
Derrick Hammer
|
1cfc2223a6
|
fix: iris context.User needs to be embedded in our User struct for type checking to properly work
|
2023-06-29 07:05:46 -04:00 |
Derrick Hammer
|
a23d165caa
|
fix(auth): eager load the account relation to return it
|
2023-06-29 07:04:24 -04:00 |
Derrick Hammer
|
e018a4b743
|
fix(upload): add account to upload record
|
2023-06-29 05:42:59 -04:00 |
Derrick Hammer
|
637b656d36
|
refactor(auth): move getCurrentUserId to auth package and make public
|
2023-06-29 05:41:26 -04:00 |
Derrick Hammer
|
ce1b5e31d5
|
fix: rewrite sql logic
|
2023-06-11 03:57:56 -04:00 |
Derrick Hammer
|
4ff1334d8a
|
fix: use getWorkerObjectUrl
|
2023-06-11 03:17:32 -04:00 |
Derrick Hammer
|
86380c7b3a
|
fix: wrong algo
|
2023-06-10 01:15:17 -04:00 |
Derrick Hammer
|
9b82fa7828
|
fix: use challengeObj
|
2023-06-10 01:02:31 -04:00 |
Derrick Hammer
|
bf576dfaee
|
fix: change jwtKey to ed25519.PrivateKey
|
2023-06-10 00:54:57 -04:00 |
Derrick Hammer
|
3b1e860256
|
feat: add proof download
|
2023-06-09 15:52:58 -04:00 |
Derrick Hammer
|
160a9f7ebb
|
refactor: use getWorkerProofUrl
|
2023-06-09 15:48:41 -04:00 |
Derrick Hammer
|
85a02952df
|
feat: generate and/or load an ed25519 private key for jwt token generation
|
2023-06-09 15:36:45 -04:00 |
Derrick Hammer
|
a9d153a22f
|
refactor: modify VerifyLoginToken to return a pointer to the account model
|
2023-06-09 07:37:45 -04:00 |
Derrick Hammer
|
a14dad43ed
|
feat: add new user service object that implements iris context User interface
|
2023-06-09 07:36:44 -04:00 |
Derrick Hammer
|
8692a0225e
|
feat: add pin service method
|
2023-06-09 07:04:06 -04:00 |
Derrick Hammer
|
9e52cd671b
|
refactor: standardize errors to global error objects
|
2023-06-09 06:24:42 -04:00 |
Derrick Hammer
|
d1d4f6b679
|
refactor: try to decode the token claim for pre-verification
|
2023-06-09 04:29:18 -04:00 |
Derrick Hammer
|
16f2ac3604
|
refactor: verify the token is a valid format, then check the db, then validate, and if it fails, delete from the db
|
2023-06-09 04:26:50 -04:00 |
Derrick Hammer
|
73e1c5a363
|
refactor: move all primary logic to service packages and standardize error objects
|
2023-06-09 04:03:29 -04:00 |
Derrick Hammer
|
1f195cf328
|
feat: add a Status method for uploads
|
2023-06-06 16:33:14 -04:00 |
Derrick Hammer
|
d0e59c8729
|
refactor: no longer embed renterd
|
2023-06-06 16:32:27 -04:00 |
Derrick Hammer
|
e7d1bd0f09
|
refactor: add getStore helper
|
2023-05-23 20:10:51 -04:00 |
Derrick Hammer
|
7845f95776
|
refactor: move logger to its own package
|
2023-05-22 19:05:53 -04:00 |
Derrick Hammer
|
6d5b9d880b
|
refactor: deduplicate building api urls
|
2023-05-22 17:14:32 -04:00 |
Derrick Hammer
|
4b712a3a80
|
refactor: see if proof exists and only if both the proof and file are not 404, do we abort as already existing
|
2023-05-22 16:36:19 -04:00 |
Derrick Hammer
|
90170e5b81
|
fix: if we have an existing upload, just return it as if successful
|
2023-05-22 11:02:47 -04:00 |
Derrick Hammer
|
ed6220fc7d
|
refactor: optionally compare passed hash with computed one and reject if they don't match
|
2023-05-22 11:00:24 -04:00 |
Derrick Hammer
|
09f9a5bdfd
|
refactor: update id fields
|
2023-05-22 10:59:16 -04:00 |
Derrick Hammer
|
6ddef03790
|
fix: if uploading returns a 500 and its a slab error, treat as a 404
|
2023-05-19 09:05:40 -04:00 |
Derrick Hammer
|
bef2ed7431
|
refactor: add logging
|
2023-05-19 09:04:47 -04:00 |
Derrick Hammer
|
df08fc980a
|
fix: add a check for a 500 error
|
2023-05-17 13:33:22 -04:00 |
Derrick Hammer
|
aa702ffd02
|
refactor: move to new golang bao implementation
|
2023-05-17 09:52:25 -04:00 |
Derrick Hammer
|
55d8dda6e8
|
refactor: have the Download method check for a tus upload thats still in progress and use it if a upload item does not exist
|
2023-05-16 18:42:03 -04:00 |
Derrick Hammer
|
673f7c6dfd
|
refactor: have Upload take both a io.ReaderSeeker and os.File and update usages based of if we are streaming a small file or handling a big one via filename
|
2023-05-15 15:47:46 -04:00 |
Derrick Hammer
|
435445dda5
|
refactor: change where to use a struct
|
2023-05-11 15:25:31 -04:00 |
Derrick Hammer
|
294370d88d
|
fix: hasher needs the size set to 32
|
2023-05-11 15:24:49 -04:00 |
Derrick Hammer
|
90e4ce6408
|
fix: use bufio reader
|
2023-05-10 14:50:36 -04:00 |
Derrick Hammer
|
b48db1d8c4
|
refactor: add Download function to files service
|
2023-05-10 14:41:12 -04:00 |
Derrick Hammer
|
a93add8f70
|
refactor: create new files package with Upload
|
2023-05-10 14:28:32 -04:00 |
Derrick Hammer
|
8f3af2084c
|
refactor: rename services to controllers
|
2023-05-10 07:07:56 -04:00 |
Derrick Hammer
|
b21a425e24
|
fix: dont try to stream if we have an error
|
2023-05-08 10:16:47 -04:00 |
Derrick Hammer
|
79fd550c54
|
feat: add download endpoint
|
2023-05-08 10:10:57 -04:00 |
Derrick Hammer
|
2dc9d4dcf6
|
refactor: rename encode method
|
2023-05-06 04:38:09 -04:00 |
Derrick Hammer
|
9b8cb38496
|
fix: disable client warnings
|
2023-05-06 03:56:38 -04:00 |
Derrick Hammer
|
7aea462ab7
|
fix: uploading of main file
|
2023-05-04 09:11:31 -04:00 |
Derrick Hammer
|
5aca66d919
|
fix: encode size as uint64 to the end of the cid
|
2023-05-04 08:16:44 -04:00 |
Derrick Hammer
|
039a4a3354
|
fix: if upload status code isn't 200, make it an err based on the body
|
2023-05-04 07:58:06 -04:00 |
Derrick Hammer
|
b16beebabb
|
feat: add files service with upload endpoint
|
2023-05-04 04:18:38 -04:00 |