hellofresh / health-go

Library to provide basic healthcheck functionality to Go applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add password authentication redis check

E22T07 opened this issue · 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