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 |
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
|
316e3cddb0
|
refactor: add Original to interface
|
2024-01-09 12:50:52 -05:00 |
Derrick Hammer
|
799be312e1
|
refactor: add kind to interface
|
2024-01-09 12:49:16 -05:00 |
Derrick Hammer
|
1458cbe1d9
|
fix: ensure we use int everywhere for kind to try and avoid any weird bitwise or implied conversions
|
2024-01-09 12:47:58 -05:00 |
Derrick Hammer
|
e011d452d5
|
refactor: ToMessage isnt needed
|
2024-01-08 12:07:19 -05:00 |
Derrick Hammer
|
6a474c92dc
|
test: fix mock generation
|
2024-01-08 01:16:20 -05:00 |
Derrick Hammer
|
86da64fa41
|
feat: add gomock testing
|
2024-01-08 00:18:30 -05:00 |
Derrick Hammer
|
2f5a853ff8
|
refactor: store incoming message as a child property vs overriding itself via pointer magic
|
2024-01-07 22:55:57 -05:00 |
Derrick Hammer
|
fec2adb72f
|
fix: we need to use the msgpack reader and get the rest of the bytes, not use DecodeRaw
|
2024-01-07 22:21:59 -05:00 |
Derrick Hammer
|
a9fb6aedb9
|
fix: need to store a reference to the handler to itself so we can access it by the proper type in a parent method
|
2024-01-07 10:37:42 -05:00 |
Derrick Hammer
|
ebd95f59d4
|
fix: need to set known
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
a59b7d44d6
|
fix: bad type conversion, and add a panic
|
2024-01-07 09:13:02 -05:00 |
Derrick Hammer
|
a497592bad
|
refactor: add dummy DecodeMessage to panic, and add getter/setter for known
|
2024-01-07 09:13:01 -05:00 |
Derrick Hammer
|
b53eb16767
|
refactor: add interface check
|
2024-01-07 09:12:54 -05:00 |
Derrick Hammer
|
2e9b07c6bd
|
refactor: dont use pointers with interfaces
|
2024-01-07 06:47:01 -05:00 |
Derrick Hammer
|
54f0a53f77
|
refactor: need to crease a base protocol package to solve import cycle
|
2024-01-07 05:12:43 -05:00 |