1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-19 04:50:02 +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

@ -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"`