Derrick Hammer
|
6be36feabf
|
fix: if map is empty, create an empty one
|
2024-01-18 12:09:01 -05:00 |
Derrick Hammer
|
ea60d8f0cf
|
feat: implement EncodeMsgpack and DecodeMsgpack for WebAppMetadata
|
2024-01-18 12:06:47 -05:00 |
Derrick Hammer
|
04fb3f155a
|
dep: add github.com/samber/lo
|
2024-01-18 12:06:15 -05:00 |
Derrick Hammer
|
6a967c3884
|
testing: add TestWebAppMetadata_EncodeJSON
|
2024-01-18 10:16:32 -05:00 |
Derrick Hammer
|
dfcfd80d93
|
testing: add TestDirectoryMetadata_EncodeJSON
|
2024-01-18 10:03:52 -05:00 |
Derrick Hammer
|
a3af7485a6
|
fix: need to marshall the actual encoded output
|
2024-01-18 10:03:17 -05:00 |
Derrick Hammer
|
4e78403658
|
fix: need to update FileReference struct so that URI and Key are omitted if empty
|
2024-01-18 10:02:30 -05:00 |
Derrick Hammer
|
113f24f4d8
|
fix: need to update directory struct so that EncryptionKey is nullable, and URI and Key are omitted if empty
|
2024-01-18 10:02:24 -05:00 |
Derrick Hammer
|
68200ae626
|
fix: add FileReference Equal
|
2024-01-18 09:15:07 -05:00 |
Derrick Hammer
|
3e76519091
|
fix: bad http verb
|
2024-01-17 17:02:39 -05:00 |
Derrick Hammer
|
3009e1dce3
|
feat: implement /s5/p2p/nodes
|
2024-01-17 15:51:41 -05:00 |
Derrick Hammer
|
e034e1096f
|
refactor: create constructors for FileHistoryMap and ExtMap
|
2024-01-17 14:22:43 -05:00 |
Derrick Hammer
|
47048ed2ab
|
refactor: use uint64
|
2024-01-17 14:12:18 -05:00 |
Derrick Hammer
|
e9baacd55e
|
fix: update CIDFromHash call
|
2024-01-17 11:29:54 -05:00 |
Derrick Hammer
|
d0da02184b
|
fix: use MultihashFromBytes
|
2024-01-17 11:29:23 -05:00 |
Derrick Hammer
|
5a6c322524
|
feat: add MultihashFromBytes
|
2024-01-17 11:27:52 -05:00 |
Derrick Hammer
|
c95a953ca2
|
Revert "fix: need to use BigEndian to encode little?"
This reverts commit 936450f9e6 .
|
2024-01-17 10:34:14 -05:00 |
Derrick Hammer
|
936450f9e6
|
fix: need to use BigEndian to encode little?
|
2024-01-17 10:14:56 -05:00 |
Derrick Hammer
|
a708380639
|
Revert "fix: need to use original endian functions from s5"
This reverts commit ae8bdbc272 .
|
2024-01-17 10:10:53 -05:00 |
Derrick Hammer
|
ae8bdbc272
|
fix: need to use original endian functions from s5
|
2024-01-17 09:42:41 -05:00 |
Derrick Hammer
|
fe11954e1d
|
fix: remove unneeded HTTPRouter method
|
2024-01-16 14:06:48 -05:00 |
Derrick Hammer
|
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
|
2024-01-16 11:26:27 -05:00 |
Derrick Hammer
|
28444ca456
|
feat: add s5 login and register endpoints
|
2024-01-16 10:16:43 -05:00 |
Derrick Hammer
|
13ca22d80e
|
fix: prevent channel closed panic
|
2024-01-15 19:34:11 -05:00 |
Derrick Hammer
|
dced32ab21
|
fix: use PutUInt
|
2024-01-15 14:13:27 -05:00 |
Derrick Hammer
|
1b6925c296
|
refactor: change abused to abuser
|
2024-01-15 13:50:04 -05:00 |
Derrick Hammer
|
d0d6745d60
|
fix: only log if peer was not flagged for abuse
|
2024-01-15 13:49:07 -05:00 |
Derrick Hammer
|
7d34ac37db
|
fix: flag abused before closing
|
2024-01-15 13:40:41 -05:00 |
Derrick Hammer
|
c2ab3b4651
|
refactor: switch to EndForAbuse
|
2024-01-15 13:37:49 -05:00 |
Derrick Hammer
|
944067522a
|
feat: add abused to peer so we can know when a peer has abused us and not log errors for them
|
2024-01-15 13:36:13 -05:00 |
Derrick Hammer
|
5e80831335
|
fix: only block and log if we are actually blocking, and make it all debug messages
|
2024-01-15 13:19:46 -05:00 |
Derrick Hammer
|
d76bfc6daf
|
fix: use Get/PutUInt
|
2024-01-15 13:10:15 -05:00 |
Derrick Hammer
|
3ddf2595b9
|
fix: use Get/PutUInt
|
2024-01-15 13:03:49 -05:00 |
Derrick Hammer
|
743ba71e4b
|
fix: use PutUInt
|
2024-01-15 12:58:46 -05:00 |
Derrick Hammer
|
6e2b08dd05
|
feat: add GetUInt and PutUInt
|
2024-01-15 12:57:47 -05:00 |
Derrick Hammer
|
def05376f5
|
fix: only block peer id if we can get the id
|
2024-01-15 12:13:17 -05:00 |
Derrick Hammer
|
0ce9b139b1
|
fix: use outgoingPeerBlocklist
|
2024-01-15 12:09:25 -05:00 |
Derrick Hammer
|
bbb407b0e1
|
fix: add incoming peer to ip block too, and add more logging
|
2024-01-15 11:45:25 -05:00 |
Derrick Hammer
|
ab53dbdf08
|
fix: only block peer if we have the id, and the maps were flipped
|
2024-01-15 11:38:38 -05:00 |
Derrick Hammer
|
fc10a265a7
|
feat: implement GetIP
|
2024-01-15 11:15:11 -05:00 |
Derrick Hammer
|
e7026459b4
|
fix: if peer sends us someone we have blocked outbound, block them inbound too
|
2024-01-15 11:04:41 -05:00 |
Derrick Hammer
|
3f0af1587b
|
fix: set outgoingPeerBlocklist and incomingPeerBlockList correctly
|
2024-01-15 10:59:45 -05:00 |
Derrick Hammer
|
b9bf531663
|
fix: init outgoingPeerFailures
|
2024-01-15 10:58:03 -05:00 |
Derrick Hammer
|
883f50b198
|
feat: add incoming and outgoing peer blocking to handle abuse
|
2024-01-15 10:54:31 -05:00 |
Derrick Hammer
|
d79455c68c
|
refactor: rename GetHandler to GetHttpRouter
|
2024-01-14 22:06:57 -05:00 |
Derrick Hammer
|
3d12cff53e
|
refactor: use setter for the http handler
|
2024-01-14 22:06:18 -05:00 |
Derrick Hammer
|
38e330e02b
|
feat: add an interface for handling http methods to be handled abstractly and implement the basic upload endpoint
|
2024-01-14 20:53:44 -05:00 |
Derrick Hammer
|
3d41119f74
|
fix: add a new property on messages and peers to prevent messages from being processed before the handshake is done
|
2024-01-13 11:22:01 -05:00 |
Derrick Hammer
|
36f087dc83
|
fix: malformed selfConnectionUri
|
2024-01-12 15:10:24 -05:00 |
Derrick Hammer
|
f38c02adb9
|
fix: dummy file to make go get happy
|
2024-01-12 07:55:39 -05:00 |