Commit Graph

415 Commits

Author SHA1 Message Date
Derrick Hammer f526202fa3
dep: use go 1.21 2024-02-29 23:24:30 -05:00
Derrick Hammer f279eb7e9d
fix: need to use new struct instance, not interface 2024-02-29 12:50:20 -05:00
Derrick Hammer 56704ea184
dep: add go.sum 2024-02-29 12:25:35 -05:00
Derrick Hammer 1584c38641
fix: check status code, and switch to more light weight http library 2024-02-29 12:25:21 -05:00
Derrick Hammer 7bd9cf11ae
refactor: add items methods for directoryReferenceMap and fileReferenceMap 2024-02-29 11:32:13 -05:00
Derrick Hammer 5a0b742139
fix: add handshake check to unsigned messages as well 2024-02-28 14:13:44 -05:00
Derrick Hammer 47c82c6a03
feat: add new All API that will return all queried locations 2024-02-27 10:49:47 -05:00
Derrick Hammer e9f4a7b0b9
feat: add ability to exclude a list of nodes when querying 2024-02-27 07:27:10 -05:00
Derrick Hammer 82de843ad9
fix: only skip if we somehow get called while not started and we aren't starting 2024-02-27 04:10:16 -05:00
Derrick Hammer e201c899f4
refactor: add new starting state 2024-02-27 04:07:12 -05:00
Derrick Hammer ddde672b3c
refactor: add ctx to all services 2024-02-27 03:30:45 -05:00
Derrick Hammer 3a7bf94a08
fix: add more mapstructure tags 2024-02-27 03:11:00 -05:00
Derrick Hammer af3cb367bb
fix: need to provide embedded ServiceParams struct 2024-02-27 02:52:27 -05:00
Derrick Hammer 23187704ee
fix: remove logger, config, db from params as its already defined in ServiceParams 2024-02-27 02:49:03 -05:00
Derrick Hammer b0c4597852
feat: add mapstructure tags 2024-02-23 07:23:33 -05:00
Derrick Hammer dfeb8b29a8
fix: silently abort early if we have no connections to make 2024-01-31 20:20:59 -05:00
Derrick Hammer 5079db4f03
fix: need to use NewDecoder and manually call DecodeMessage and HandleMessage 2024-01-30 17:26:06 -05:00
Derrick Hammer 881e19d569
fix: dont shadow err 2024-01-30 17:09:05 -05:00
Derrick Hammer 5350eda27e
fix: IncomingMessageData needs Logger 2024-01-30 16:54:13 -05:00
Derrick Hammer 7cc5621a10
fix: use ServicesSetter 2024-01-30 16:07:22 -05:00
Derrick Hammer fd55c0984f
refactor: split SetServices into its own interface 2024-01-30 16:06:57 -05:00
Derrick Hammer 5a2e28faba
fix: temp cast mediator so we can set the service data 2024-01-30 16:00:41 -05:00
Derrick Hammer 9919ad72da
fix: add init to services and node 2024-01-30 15:46:00 -05:00
Derrick Hammer 8914bada60
chore: unneeded pkg 2024-01-30 14:16:57 -05:00
Derrick Hammer 2201b5cb07
fix: don't try to embed service.ServiceParams 2024-01-30 14:16:16 -05:00
Derrick Hammer df3f7e24bb
fix: don't try to embed node.ServicesParams 2024-01-30 14:13:37 -05:00
Derrick Hammer a51e3430e1
refactor: more refactoring to break import cycles, introduce a mediator between protocol and service 2024-01-30 00:31:31 -05:00
Derrick Hammer 05ab4e7c0f
chore: unneeded file 2024-01-29 22:56:27 -05:00
Derrick Hammer b48b8f2f51
fix: filename typo 2024-01-29 22:40:36 -05:00
Derrick Hammer f2d2193fc2
fix: fix imports, use GetMessageType not GetSignedMessageType 2024-01-29 22:38:52 -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 715980fd1b
fix: bad imports 2024-01-29 22:28:39 -05:00
Derrick Hammer af58aac985
refactor: base pkg is not needed 2024-01-29 22:25:46 -05:00
Derrick Hammer bd08d75da4
refactoring: more refactoring to break import cycles 2024-01-29 21:38:29 -05:00
Derrick Hammer 0ee96599f1
refactoring: more refactoring to break import cycles 2024-01-29 21:03:57 -05:00
Derrick Hammer 3b3a50e419
refactoring: more refactoring to break import cycles 2024-01-29 20:52:17 -05:00
Derrick Hammer b2c06590b1
refactoring: more refactoring to break import cycles 2024-01-29 19:24:50 -05:00
Derrick Hammer 2e8c335b7e
refactoring: more refactoring to break import cycles 2024-01-29 18:53:32 -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 722f130072
feat: add initial uber fx support 2024-01-29 02:16:14 -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 384557de0c
testing: remove bad imports 2024-01-29 00:25:25 -05:00
Derrick Hammer 238f78b556
testing: remove mocks for now 2024-01-29 00:23:42 -05:00
Derrick Hammer 4b718e1dd3
fix: update import for node 2024-01-29 00:02:15 -05:00
Derrick Hammer a0dcc52d63
refactor: remove dedicated interfaces and minimize interfaces 2024-01-28 23:59:43 -05:00
Derrick Hammer 31ccfb8c0b
refactor: major rewrite of message structure and wiring, reducing complexity 2024-01-28 23:39:40 -05:00