mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-18 04:40:03 +02:00
app/config/config.go: Adding User field to RedisConfig
This commit is contained in:
parent
8ab7d852a7
commit
500cddc082
4 changed files with 7 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ import (
|
|||
|
||||
type RedisConfig struct {
|
||||
Addr string `yaml:"addr"`
|
||||
User string `yaml:"user"`
|
||||
Password string `yaml:"password"`
|
||||
DB int `yaml:"db"`
|
||||
CacheID string `yaml:"cache_id"`
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ func TestParse(t *testing.T) {
|
|||
},
|
||||
Redis: RedisConfig{
|
||||
Addr: "localhost:6379",
|
||||
User: "myuser",
|
||||
Password: "passwd",
|
||||
DB: 4,
|
||||
Prefix: "some::ship",
|
||||
|
|
@ -89,6 +90,7 @@ telegram:
|
|||
channel: -123456789
|
||||
redis:
|
||||
addr: "localhost:6379"
|
||||
user: "myuser"
|
||||
password: "passwd"
|
||||
db: 4
|
||||
prefix: "some::ship"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue