mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-04 12:03:41 +02:00
config/config.go: Adding RedisConfig.Prefix
This commit is contained in:
parent
cd9dd6468a
commit
ab7a8f0433
1 changed files with 2 additions and 0 deletions
|
|
@ -12,6 +12,7 @@ type RedisConfig struct {
|
||||||
Password string `json:"password"`
|
Password string `json:"password"`
|
||||||
DB int `json:"db"`
|
DB int `json:"db"`
|
||||||
CacheID string `json:"cache_id"`
|
CacheID string `json:"cache_id"`
|
||||||
|
Prefix string `json:"prefix"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type TelegramConfig struct {
|
type TelegramConfig struct {
|
||||||
|
|
@ -44,6 +45,7 @@ func Load(filename string) (Config, error) {
|
||||||
Addr: "localhost:6379",
|
Addr: "localhost:6379",
|
||||||
Password: "",
|
Password: "",
|
||||||
DB: 0,
|
DB: 0,
|
||||||
|
Prefix: "ship",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue