Replicas shows a list of replicas for the specified master and their state.
(ctx context.Context, name string)
| 789 | |
| 790 | // Replicas shows a list of replicas for the specified master and their state. |
| 791 | func (c *SentinelClient) Replicas(ctx context.Context, name string) *MapStringStringSliceCmd { |
| 792 | cmd := NewMapStringStringSliceCmd(ctx, "sentinel", "replicas", name) |
| 793 | _ = c.Process(ctx, cmd) |
| 794 | return cmd |
| 795 | } |
| 796 | |
| 797 | // CkQuorum checks if the current Sentinel configuration is able to reach the |
| 798 | // quorum needed to failover a master, and the majority needed to authorize the |