SetPassword will set the password for all nodes in the cluster.
(password string)
| 91 | |
| 92 | // SetPassword will set the password for all nodes in the cluster. |
| 93 | func (cluster *Cluster) SetPassword(password string) { |
| 94 | for i := 0; i < len(cluster.Shards); i++ { |
| 95 | for j := 0; j < len(cluster.Shards[i].Nodes); j++ { |
| 96 | cluster.Shards[i].Nodes[j].SetPassword(password) |
| 97 | } |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | func (cluster *Cluster) ToSlotString() (string, error) { |
| 102 | var builder strings.Builder |