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:
parent
fdc18e30cb
commit
dbe01ad7ca
2 changed files with 11 additions and 0 deletions
|
|
@ -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"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue