| 79 | } |
| 80 | |
| 81 | type Client struct { |
| 82 | mu sync.Mutex |
| 83 | |
| 84 | homeCfg config.HomeConfig |
| 85 | seedHost string |
| 86 | seedPort int |
| 87 | |
| 88 | cmd *redis.Client |
| 89 | sub *redis.Client |
| 90 | |
| 91 | heartbeatOK atomic.Bool |
| 92 | clusterNodes []clusterNode |
| 93 | reconnectFailures int |
| 94 | } |
| 95 | |
| 96 | func New(homeCfg config.HomeConfig) *Client { |
| 97 | return &Client{ |
nothing calls this directly
no outgoing calls
no test coverage detected