update handler (#2)

* 🔧 Remove commented-out regex patterns and initialization in config.

*  Add NATS message publisher with configuration 📩🚀

*  Add new PlainTextMarshaler and refactor handler in nats package.
This commit is contained in:
windyboy
2024-08-12 17:47:34 +08:00
committed by GitHub
parent fd58395db3
commit 8a4c46aa34
6 changed files with 82 additions and 20 deletions
+3
View File
@@ -7,6 +7,9 @@ cluster = "tele-cluster"
topic = "Telegram.Serial"
queue = "tele-queue"
[publisher]
topic = "Telegram.Json"
[timeouts]
server = "5s"
reconnect_wait = "5s"