1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-20 09:56:47 +02:00

internal/config: add additional flags for config fields.

This commit is contained in:
Henrik Hautakoski 2024-02-18 15:45:10 +01:00
parent beb5b6cf04
commit 2db0a64bd4
3 changed files with 107 additions and 9 deletions

View file

@ -22,8 +22,31 @@ type Builder struct {
func NewBuilder() *Builder {
return &Builder{
binds: map[string]string{
"ship.start_block_num": "start-block",
"ship.end_block_num": "end-block",
"api": "url",
"message_codec": "codec",
// Redis
"redis.addr": "redis-addr",
"redis.user": "redis-user",
"redis.password": "redis-password",
"redis.db": "redis-db",
"redis.prefix": "redis-prefix",
// Telegram
"telegram.id": "telegram-id",
"telegram.channel": "telegram-channel",
// Log
"log.maxfilesize": "log-max-filesize",
"log.maxtime": "log-max-time",
// Ship
"ship.url": "ship-url",
"ship.start_block_num": "start-block",
"ship.end_block_num": "end-block",
"ship.irreversible_only": "irreversible-only",
"ship.max_messages_in_flight": "max-msg-in-flight",
"ship.chain": "chain",
},
}
}