mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-03 11:53:41 +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
|
|
@ -6,6 +6,10 @@
|
||||||
"max_messages_in_flight": 10,
|
"max_messages_in_flight": 10,
|
||||||
"start_block_num": 4294967295,
|
"start_block_num": 4294967295,
|
||||||
"end_block_num": 4294967295,
|
"end_block_num": 4294967295,
|
||||||
|
"telegram": {
|
||||||
|
"id": "110201543:AAHdqTcvCH1vGWJxfSeofSAs0K5PALDsaw",
|
||||||
|
"channel": -123456789
|
||||||
|
},
|
||||||
"redis": {
|
"redis": {
|
||||||
"addr": "localhost:6379",
|
"addr": "localhost:6379",
|
||||||
"password": "",
|
"password": "",
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,11 @@ type RedisConfig struct {
|
||||||
CacheID string `json:"cache_id"`
|
CacheID string `json:"cache_id"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TelegramConfig struct {
|
||||||
|
Id string `json:"id"`
|
||||||
|
Channel int64 `json:"channel"`
|
||||||
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
ShipApi string `json:"ship_api"`
|
ShipApi string `json:"ship_api"`
|
||||||
|
|
@ -22,6 +27,8 @@ type Config struct {
|
||||||
|
|
||||||
Redis RedisConfig `json:"redis"`
|
Redis RedisConfig `json:"redis"`
|
||||||
|
|
||||||
|
Telegram TelegramConfig `json:"telegram"`
|
||||||
|
|
||||||
IrreversibleOnly bool `json:"irreversible_only"`
|
IrreversibleOnly bool `json:"irreversible_only"`
|
||||||
MaxMessagesInFlight uint32 `json:"max_messages_in_flight"`
|
MaxMessagesInFlight uint32 `json:"max_messages_in_flight"`
|
||||||
StartBlockNum uint32 `json:"start_block_num"`
|
StartBlockNum uint32 `json:"start_block_num"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue