19 Commits

Author SHA1 Message Date
c684a76a5e fix: fixed xread decoding 2024-02-08 23:39:07 +01:00
a7bafa6a0c fix(redis_connector): encode/decode stream data 2024-02-08 23:39:07 +01:00
9a98dbafd4 refactor: cleanup and formatting 2024-02-08 19:26:55 +01:00
f1219ae0f0 fix: fixed xread 2024-02-08 19:26:55 +01:00
3d087ef87d fix(AlarmMessage)!: content member (dict) changed to msg (str)
In practice it was already used as a message.
2024-02-07 12:43:52 +01:00
8bbfd10ca7 refactor(messages)!: messages refactoring, new serialization module
To have a better separation of concern between messages and how they are conveyed in connectors.
BECMessage can be simple dataclasses, leaving the serialization to the connector which transport those.
The serialization module itself can be isolated, and in the case of msgpack it can be extended to
understand how to encode/decode BECMessage, to simplify writing code like with BundleMessage or to
be able to automatically encode numpy or BECStatus objects.
Finally, client objects (producers and consumers) can receive BECMessage objects instead of having
to dump or load themselves.
2024-02-07 12:43:52 +01:00
943b10dac0 refactor: move Alarms enum into alarms_handler 2023-11-10 12:13:57 +01:00
06f2d781ae refactor: rename module BECMessage -> messages
This should help to avoid confusion between BECMessage module and
BECMessage class located in the same module
2023-11-10 10:28:53 +01:00
524ef24da0 refactor: flatten bec_lib structure 2023-11-10 10:24:33 +01:00
d2bd559c3e Remove key/channel postfixes 2023-11-06 12:39:19 +00:00
1a24616cb3 test: added xrange and get_last tests 2023-09-02 20:58:47 +02:00
1137e3188d tests: fixed tests for new stream suffix 2023-08-31 20:53:57 +00:00
e84601f487 feat: added get_last; changed streams to stream suffix 2023-08-31 20:53:57 +00:00
d19fce7d21 fix: fixed xadd for pipelines 2023-08-31 21:54:08 +02:00
2f30c64cd7 test: added redis connector tests 2023-08-10 20:37:03 +00:00
5d892fe345 test: improved tests for redis connector 2023-07-12 17:00:44 +02:00
72e4f943b6 fix: improvements / fixes for redis streams 2023-07-12 15:37:58 +02:00
e8352aa606 feat: added redis stream methods to RedisProducer 2023-07-12 09:30:15 +02:00
a944e43e1a feat: renamed bec_client_lib to bec_lib 2023-06-28 11:04:24 +02:00