MCPcopy
hub / github.com/redis/go-redis / Replicas

Method Replicas

sentinel.go:791–795  ·  view source on GitHub ↗

Replicas shows a list of replicas for the specified master and their state.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

789
790// Replicas shows a list of replicas for the specified master and their state.
791func (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

Callers 4

replicaAddrsMethod · 0.95
GetSlavesAddrByNameFunction · 0.80
getReplicaAddrsMethod · 0.80

Calls 2

ProcessMethod · 0.95

Tested by 2

GetSlavesAddrByNameFunction · 0.64