From 323b7f4032d19c06523f2eaaf1d20d32e1330b54 Mon Sep 17 00:00:00 2001 From: jloup Date: Mon, 30 Apr 2018 22:28:59 +0200 Subject: Redis connection. --- cmd/app/main.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cmd/app/main.go') diff --git a/cmd/app/main.go b/cmd/app/main.go index 4bd77bd..65e8b5a 100644 --- a/cmd/app/main.go +++ b/cmd/app/main.go @@ -26,9 +26,10 @@ type ApiConfig struct { } type Config struct { - App AppConfig - Api ApiConfig - Db db.DBConfig + App AppConfig + Api ApiConfig + Db db.DBConfig + Redis db.RedisConfig utils.LogConfiguration Address string @@ -64,7 +65,7 @@ func init() { api.SetJwtSecretKey(C.Api.JwtSecret) - db.Init(C.Db) + db.Init(C.Db, C.Redis) if C.Mode == "production" { gin.SetMode(gin.ReleaseMode) -- cgit v1.2.3