eleksir
f72b510b65
More autogenerated tests!
2026-03-30 17:18:51 +03:00
eleksir
2ef9199c9a
Add tests, add makefile targets - test and help
2026-03-30 17:05:16 +03:00
eleksir
77bddef812
Fix minor bugs: log file close, typo, JSON field consistency
...
- Add defer logfile.Close() to prevent file descriptor leak
- Fix typo 'Incomming' -> 'Incoming' in log message
- Change JSON tag 'Misc' to 'misc' for consistency with sMsg
2026-03-30 17:03:57 +03:00
eleksir
e34866abe2
Fix config validation to reject invalid configs
2026-03-30 16:45:13 +03:00
eleksir
59643b6a0a
Add cancellable context for Redis operation to prevent hanging redis ops on shutdown
...
- Rename Ctx to RedisCtx with CancelRedisCtx function
- Signal handler now cancels context before closing Redis
2026-03-30 16:37:37 +03:00
eleksir
57b2c56b3f
Process messages until channel close on shutdown
...
- Remove Shutdown check - process all messages in buffer
2026-03-30 16:26:22 +03:00
eleksir
6c8e735d04
Add retry logic for Redis publish failures
...
- Retry up to 3 times with 1 second delay on publish failure
2026-03-30 16:21:57 +03:00
eleksir
b661d42074
Fix Fwdcnt zero value handling in message parsing
...
- Change Fwdcnt type from int64 to *int64 in rMsg struct
- Use pointer to properly distinguish between 'not provided' (nil) and explicit 0
- Update all Fwdcnt usages to dereference pointer
2026-03-30 01:52:27 +03:00
eleksir
97b337db31
Fix panic on empty/short message in MsgParser
...
- Add bounds check before slicing message for csign prefix detection
- Prevents index out of range panic when message is empty or shorter than csign
2026-03-30 01:47:13 +03:00
eleksir
9baa9ec5a2
Механики логгирования вынесены в отдельный модуль
2025-10-12 14:50:12 +03:00
eleksir
a49abdd715
Logrus заменён на штатный log/slog, обновлены зависимости
2025-10-07 23:59:18 +03:00
eleksir
e000489790
Изменено расположение файлов на более гошное, обновлены зависимости
2025-08-30 03:12:40 +03:00