Commit Graph

42 Commits

Author SHA1 Message Date
Derrick Hammer ddde672b3c
refactor: add ctx to all services 2024-02-27 03:30:45 -05:00
Derrick Hammer 9919ad72da
fix: add init to services and node 2024-01-30 15:46:00 -05:00
Derrick Hammer ff134ece14
refactor: merged signed back into protocol 2024-01-29 22:35:40 -05:00
Derrick Hammer b49dd976b5
fix: bad imports and need to switch to interfaces 2024-01-29 22:31:05 -05:00
Derrick Hammer ca41aee245
feat: add NodeId helper 2024-01-29 14:33:40 -05:00
Derrick Hammer 57ab0f36f9
feat: add NetworkId helper 2024-01-29 14:26:10 -05:00
Derrick Hammer cc53e61918
fix: need to register storage service 2024-01-29 02:12:02 -05:00
Derrick Hammer b60979e79d
refactor: further refactoring for DI, splitting node responsibilities to a new Storage service, Services, and P2P 2024-01-29 01:55:36 -05:00
Derrick Hammer 59a73e4266
refactor: use a dependency injection/IoC pattern based off uber fx 2024-01-29 01:10:04 -05:00
Derrick Hammer a0dcc52d63
refactor: remove dedicated interfaces and minimize interfaces 2024-01-28 23:59:43 -05:00
Derrick Hammer 69bed0a0bf
refactor: AddStorageLocation doesn't need a config argument 2024-01-24 02:58:55 -05:00
Derrick Hammer d734e1a89b
feat: create provider store interface for use in hash query 2024-01-24 02:32:49 -05:00
Derrick Hammer fe11954e1d
fix: remove unneeded HTTPRouter method 2024-01-16 14:06:48 -05:00
Derrick Hammer d79455c68c
refactor: rename GetHandler to GetHttpRouter 2024-01-14 22:06:57 -05:00
Derrick Hammer 584057fb8a
feat: initial HTTP service with version and P2P endpoints 2024-01-10 09:19:21 -05:00
Derrick Hammer 65727b8cc5
fix: ensure registry is setup in construction 2024-01-10 06:42:17 -05:00
Derrick Hammer 7578665ba4
refactor: add All method so that we can range over services dynamically 2024-01-10 06:33:21 -05:00
Derrick Hammer 6bf557346d
feat: initial registry service support 2024-01-10 06:29:03 -05:00
Derrick Hammer f6e005c497
feat: add support for directories in GetMetadataByCID 2024-01-09 16:34:07 -05:00
Derrick Hammer 712e216150
feat: add DownloadBytesByCID 2024-01-09 16:18:49 -05:00
Derrick Hammer f6dc2c1d53
fix: we are checking value's length and i dont know why or where this came from... 2024-01-09 16:14:31 -05:00
Derrick Hammer 5ed286a639
fix: need to manually process address slice 2024-01-09 16:13:53 -05:00
Derrick Hammer c137d75b24
fix: we need to run all bucket actions via transactions and cannot store a pointer to the bucket 2024-01-09 15:49:23 -05:00
Derrick Hammer cd8e747656
refactor: we have changed to use our own manual Init for the protocol registration for safety 2024-01-09 12:51:54 -05:00
Derrick Hammer 2622f2b9d0
fix: pass both StorageLocationTypeFull and StorageLocationTypeFile 2024-01-09 11:43:33 -05:00
Derrick Hammer 26e0a4c9df
fix: GetMetadataByCID has bad logic 2024-01-09 11:01:57 -05:00
Derrick Hammer 71192c4169
fix: use our logger 2024-01-09 11:01:25 -05:00
Derrick Hammer 8281729888
refactor: need to add in node level wait group to optionally wait and keep the node running 2024-01-09 09:11:36 -05:00
Derrick Hammer 18bc518dad
feat: implement DownloadBytesByHash and GetMetadataByCID 2024-01-09 08:18:41 -05:00
Derrick Hammer 45ffa1a98a
refactor: switch GetCachedStorageLocations to use types.StorageLocationType 2024-01-09 06:53:17 -05:00
Derrick Hammer 3ce371986b
refactor: add NetworkId() to node 2024-01-07 09:13:02 -05:00
Derrick Hammer 52f08335a2
fix: set started 2024-01-07 05:25:45 -05:00
Derrick Hammer ef86db2bd0
refactor: need to export storage structs 2024-01-07 04:33:40 -05:00
Derrick Hammer 1950edf181
refactor: move StorageLocation to a new pkg to prevent import cycle 2024-01-07 04:30:03 -05:00
Derrick Hammer 4b406bcf57
fix: need to init and setup P2P service 2024-01-07 04:17:19 -05:00
Derrick Hammer 311b03737c
fix: need to fix construction od node and stick to using interfaces 2024-01-07 04:16:33 -05:00
Derrick Hammer 99167b4cec
fix: add missing services impl 2024-01-07 04:15:28 -05:00
Derrick Hammer ca1e2dcf72
refactor: use interfaces, rename struct to be an impl 2024-01-07 03:56:50 -05:00
Derrick Hammer 26a51a25d5
fix: dont use pointers with interfaces 2024-01-07 03:56:05 -05:00
Derrick Hammer 713bcf98c3
refactor: major refactor to split major components into interfaces due to import cycles 2024-01-07 03:13:35 -05:00
Derrick Hammer 19b0785c48
fix: wrong imports and references to Config 2024-01-06 13:26:03 -05:00
Derrick Hammer 2a21ca4d60
refactor: move node and storage to its own package 2024-01-06 13:21:09 -05:00