1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00

config/config.go: Adding telegram.

This commit is contained in:
Henrik Hautakoski 2022-06-23 11:32:57 +02:00
parent fdc18e30cb
commit dbe01ad7ca
2 changed files with 11 additions and 0 deletions

View file

@ -6,6 +6,10 @@
"max_messages_in_flight": 10,
"start_block_num": 4294967295,
"end_block_num": 4294967295,
"telegram": {
"id": "110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw",
"channel": -123456789
},
"redis": {
"addr": "localhost:6379",
"password": "",

View file

@ -15,6 +15,11 @@ type RedisConfig struct {
CacheID string `json:"cache_id"`
}
type TelegramConfig struct {
Id string `json:"id"`
Channel int64 `json:"channel"`
}
type Config struct {
Name string `json:"name"`
ShipApi string `json:"ship_api"`
@ -22,6 +27,8 @@ type Config struct {
Redis RedisConfig `json:"redis"`
Telegram TelegramConfig `json:"telegram"`
IrreversibleOnly bool `json:"irreversible_only"`
MaxMessagesInFlight uint32 `json:"max_messages_in_flight"`
StartBlockNum uint32 `json:"start_block_num"`