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

Method Sentinels

sentinel.go:744–748  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

742}
743
744func (c *SentinelClient) Sentinels(ctx context.Context, name string) *MapStringStringSliceCmd {
745 cmd := NewMapStringStringSliceCmd(ctx, "sentinel", "sentinels", name)
746 _ = c.Process(ctx, cmd)
747 return cmd
748}
749
750// Failover forces a failover as if the master was not reachable, and without
751// asking for agreement to other Sentinels.

Callers 1

discoverSentinelsMethod · 0.80

Calls 2

ProcessMethod · 0.95

Tested by

no test coverage detected