hellofresh/health-go

Add password authentication redis check

E22T07 opened this issue · 0 comments

Hi, I want to use the redis check but it is necessary for me to use the authentication and in the redis check I saw that for the redis client you only set the Addr option, it is possible to add the password parameter to make the authentication works?

return func(ctx context.Context) error { redisClient := redis.NewClient(&redis.Options{ Addr: config.DSN, Password: config.Password, }) defer redisClient.Close()

Thanks