This website requires JavaScript.
e9f4a7b0b9
feat: add ability to exclude a list of nodes when querying
Derrick Hammer
2024-02-27 07:27:10 -0500
82de843ad9
fix: only skip if we somehow get called while not started and we aren't starting
Derrick Hammer
2024-02-27 04:10:16 -0500
e201c899f4
refactor: add new starting state
Derrick Hammer
2024-02-27 04:07:12 -0500
ddde672b3c
refactor: add ctx to all services
Derrick Hammer
2024-02-27 03:28:25 -0500
3a7bf94a08
fix: add more mapstructure tags
Derrick Hammer
2024-02-27 03:11:00 -0500
af3cb367bb
fix: need to provide embedded ServiceParams struct
Derrick Hammer
2024-02-27 02:52:27 -0500
23187704ee
fix: remove logger, config, db from params as its already defined in ServiceParams
Derrick Hammer
2024-02-27 02:49:03 -0500
b0c4597852
feat: add mapstructure tags
Derrick Hammer
2024-02-23 07:23:33 -0500
dfeb8b29a8
fix: silently abort early if we have no connections to make
Derrick Hammer
2024-01-31 20:20:59 -0500
5079db4f03
fix: need to use NewDecoder and manually call DecodeMessage and HandleMessage
Derrick Hammer
2024-01-30 17:26:06 -0500
881e19d569
fix: dont shadow err
Derrick Hammer
2024-01-30 17:09:05 -0500
5350eda27e
fix: IncomingMessageData needs Logger
Derrick Hammer
2024-01-30 16:54:13 -0500
7cc5621a10
fix: use ServicesSetter
Derrick Hammer
2024-01-30 16:07:22 -0500
fd55c0984f
refactor: split SetServices into its own interface
Derrick Hammer
2024-01-30 16:06:57 -0500
5a2e28faba
fix: temp cast mediator so we can set the service data
Derrick Hammer
2024-01-30 16:00:41 -0500
9919ad72da
fix: add init to services and node
Derrick Hammer
2024-01-30 15:46:00 -0500
8914bada60
chore: unneeded pkg
Derrick Hammer
2024-01-30 14:16:57 -0500
2201b5cb07
fix: don't try to embed service.ServiceParams
Derrick Hammer
2024-01-30 14:16:16 -0500
df3f7e24bb
fix: don't try to embed node.ServicesParams
Derrick Hammer
2024-01-30 14:13:37 -0500
a51e3430e1
refactor: more refactoring to break import cycles, introduce a mediator between protocol and service
Derrick Hammer
2024-01-30 00:31:31 -0500
05ab4e7c0f
chore: unneeded file
Derrick Hammer
2024-01-29 22:56:27 -0500
b48b8f2f51
fix: filename typo
Derrick Hammer
2024-01-29 22:40:36 -0500
f2d2193fc2
fix: fix imports, use GetMessageType not GetSignedMessageType
Derrick Hammer
2024-01-29 22:38:52 -0500
ff134ece14
refactor: merged signed back into protocol
Derrick Hammer
2024-01-29 22:35:00 -0500
b49dd976b5
fix: bad imports and need to switch to interfaces
Derrick Hammer
2024-01-29 22:31:05 -0500
715980fd1b
fix: bad imports
Derrick Hammer
2024-01-29 22:28:39 -0500
af58aac985
refactor: base pkg is not needed
Derrick Hammer
2024-01-29 22:25:21 -0500
bd08d75da4
refactoring: more refactoring to break import cycles
Derrick Hammer
2024-01-29 21:32:13 -0500
0ee96599f1
refactoring: more refactoring to break import cycles
Derrick Hammer
2024-01-29 21:03:10 -0500
3b3a50e419
refactoring: more refactoring to break import cycles
Derrick Hammer
2024-01-29 20:52:17 -0500
b2c06590b1
refactoring: more refactoring to break import cycles
Derrick Hammer
2024-01-29 19:24:50 -0500
2e8c335b7e
refactoring: more refactoring to break import cycles
Derrick Hammer
2024-01-29 18:53:32 -0500
ca41aee245
feat: add NodeId helper
Derrick Hammer
2024-01-29 14:33:40 -0500
57ab0f36f9
feat: add NetworkId helper
Derrick Hammer
2024-01-29 14:26:10 -0500
722f130072
feat: add initial uber fx support
Derrick Hammer
2024-01-29 02:16:14 -0500
cc53e61918
fix: need to register storage service
Derrick Hammer
2024-01-29 02:12:02 -0500
b60979e79d
refactor: further refactoring for DI, splitting node responsibilities to a new Storage service, Services, and P2P
Derrick Hammer
2024-01-29 01:55:36 -0500
59a73e4266
refactor: use a dependency injection/IoC pattern based off uber fx
Derrick Hammer
2024-01-29 01:10:04 -0500
384557de0c
testing: remove bad imports
Derrick Hammer
2024-01-29 00:25:25 -0500
238f78b556
testing: remove mocks for now
Derrick Hammer
2024-01-29 00:23:42 -0500
4b718e1dd3
fix: update import for node
Derrick Hammer
2024-01-29 00:02:15 -0500
a0dcc52d63
refactor: remove dedicated interfaces and minimize interfaces
Derrick Hammer
2024-01-28 23:59:43 -0500
31ccfb8c0b
refactor: major rewrite of message structure and wiring, reducing complexity
Derrick Hammer
2024-01-28 23:39:40 -0500
6b9a4fb7dc
fix: EncodeEndian call needs to be a length of 2
Derrick Hammer
2024-01-24 16:33:31 -0500
84acde6c72
fix: base64 needs to use raw url
Derrick Hammer
2024-01-24 13:55:56 -0500
7fd5b7654c
fix: multihash should not be using multibase
Derrick Hammer
2024-01-24 13:50:42 -0500
afa38f1424
fix: use private key
Derrick Hammer
2024-01-24 11:57:48 -0500
da57bc1f42
fix: fix again the port of EncodeEndian
Derrick Hammer
2024-01-24 11:51:10 -0500
047f556d36
fix: fix again the port of DecodeEndian
Derrick Hammer
2024-01-24 11:23:18 -0500
91b171d468
fix: prevent panic if length range is out of bounds for message
Derrick Hammer
2024-01-24 11:10:16 -0500
7ca0a67ba5
fix: revert again to using s5's original endian implementations
Derrick Hammer
2024-01-24 10:58:05 -0500
ba00e15518
fix: AddStorageLocation no longer needs config
Derrick Hammer
2024-01-24 03:37:14 -0500
96be8235f9
feat: add provide support to HashQuery
Derrick Hammer
2024-01-24 03:01:59 -0500
69bed0a0bf
refactor: AddStorageLocation doesn't need a config argument
Derrick Hammer
2024-01-24 02:58:55 -0500
34bb591bfe
feat: implement PrepareProvideMessage
Derrick Hammer
2024-01-24 02:53:56 -0500
d734e1a89b
feat: create provider store interface for use in hash query
Derrick Hammer
2024-01-24 02:32:49 -0500
9b464e0932
fix: ensure we actually have a full cid
Derrick Hammer
2024-01-24 01:51:29 -0500
7fa2e6adac
fix: filename typo
Derrick Hammer
2024-01-24 01:49:50 -0500
819f68f0d2
fix: use uint64
Derrick Hammer
2024-01-18 12:31:47 -0500
13e5d5770b
fix: ude uint64
Derrick Hammer
2024-01-18 12:27:45 -0500
a9834a81d3
fix: add json tags
Derrick Hammer
2024-01-18 12:15:47 -0500
cf168f8e4d
testing: add TestWebAppMetadata_DecodeMsgpack
Derrick Hammer
2024-01-18 12:10:42 -0500
01d695b175
testing: add TestWebAppMetadata_DecodeJSON with test webapp.bin
Derrick Hammer
2024-01-18 12:09:34 -0500
6be36feabf
fix: if map is empty, create an empty one
Derrick Hammer
2024-01-18 12:09:01 -0500
ea60d8f0cf
feat: implement EncodeMsgpack and DecodeMsgpack for WebAppMetadata
Derrick Hammer
2024-01-18 12:06:47 -0500
04fb3f155a
dep: add github.com/samber/lo
Derrick Hammer
2024-01-18 12:06:15 -0500
6a967c3884
testing: add TestWebAppMetadata_EncodeJSON
Derrick Hammer
2024-01-18 10:16:32 -0500
dfcfd80d93
testing: add TestDirectoryMetadata_EncodeJSON
Derrick Hammer
2024-01-18 10:03:52 -0500
a3af7485a6
fix: need to marshall the actual encoded output
Derrick Hammer
2024-01-18 10:03:17 -0500
4e78403658
fix: need to update FileReference struct so that URI and Key are omitted if empty
Derrick Hammer
2024-01-18 10:02:30 -0500
113f24f4d8
fix: need to update directory struct so that EncryptionKey is nullable, and URI and Key are omitted if empty
Derrick Hammer
2024-01-18 10:01:56 -0500
68200ae626
fix: add FileReference Equal
Derrick Hammer
2024-01-18 09:15:07 -0500
3e76519091
fix: bad http verb
Derrick Hammer
2024-01-17 17:02:39 -0500
3009e1dce3
feat: implement /s5/p2p/nodes
Derrick Hammer
2024-01-17 15:51:41 -0500
e034e1096f
refactor: create constructors for FileHistoryMap and ExtMap
Derrick Hammer
2024-01-17 14:22:43 -0500
47048ed2ab
refactor: use uint64
Derrick Hammer
2024-01-17 14:12:18 -0500
e9baacd55e
fix: update CIDFromHash call
Derrick Hammer
2024-01-17 11:29:54 -0500
d0da02184b
fix: use MultihashFromBytes
Derrick Hammer
2024-01-17 11:29:23 -0500
5a6c322524
feat: add MultihashFromBytes
Derrick Hammer
2024-01-17 11:25:45 -0500
c95a953ca2
Revert "fix: need to use BigEndian to encode little?"
Derrick Hammer
2024-01-17 10:34:14 -0500
936450f9e6
fix: need to use BigEndian to encode little?
Derrick Hammer
2024-01-17 10:14:56 -0500
a708380639
Revert "fix: need to use original endian functions from s5"
Derrick Hammer
2024-01-17 10:10:53 -0500
ae8bdbc272
fix: need to use original endian functions from s5
Derrick Hammer
2024-01-17 09:42:41 -0500
fe11954e1d
fix: remove unneeded HTTPRouter method
Derrick Hammer
2024-01-16 14:06:48 -0500
7261b35f94
refactor: switch to composing routes vs using a handler so we can control the api better outside the library, and only define what the library absolutely needs
Derrick Hammer
2024-01-16 11:26:27 -0500
28444ca456
feat: add s5 login and register endpoints
Derrick Hammer
2024-01-16 10:16:43 -0500
13ca22d80e
fix: prevent channel closed panic
Derrick Hammer
2024-01-15 19:34:11 -0500
dced32ab21
fix: use PutUInt
Derrick Hammer
2024-01-15 14:13:27 -0500
1b6925c296
refactor: change abused to abuser
Derrick Hammer
2024-01-15 13:50:04 -0500
d0d6745d60
fix: only log if peer was not flagged for abuse
Derrick Hammer
2024-01-15 13:49:07 -0500
7d34ac37db
fix: flag abused before closing
Derrick Hammer
2024-01-15 13:40:41 -0500
c2ab3b4651
refactor: switch to EndForAbuse
Derrick Hammer
2024-01-15 13:37:49 -0500
944067522a
feat: add abused to peer so we can know when a peer has abused us and not log errors for them
Derrick Hammer
2024-01-15 13:36:13 -0500
5e80831335
fix: only block and log if we are actually blocking, and make it all debug messages
Derrick Hammer
2024-01-15 13:19:46 -0500
d76bfc6daf
fix: use Get/PutUInt
Derrick Hammer
2024-01-15 13:10:15 -0500
3ddf2595b9
fix: use Get/PutUInt
Derrick Hammer
2024-01-15 13:03:49 -0500
743ba71e4b
fix: use PutUInt
Derrick Hammer
2024-01-15 12:58:46 -0500
6e2b08dd05
feat: add GetUInt and PutUInt
Derrick Hammer
2024-01-15 12:56:40 -0500
def05376f5
fix: only block peer id if we can get the id
Derrick Hammer
2024-01-15 12:13:17 -0500
0ce9b139b1
fix: use outgoingPeerBlocklist
Derrick Hammer
2024-01-15 12:09:25 -0500