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

Method Master

sentinel.go:777–781  ·  view source on GitHub ↗

Master shows the state and info of the specified master.

(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

775
776// Master shows the state and info of the specified master.
777func (c *SentinelClient) Master(ctx context.Context, name string) *MapStringStringCmd {
778 cmd := NewMapStringStringCmd(ctx, "sentinel", "master", name)
779 _ = c.Process(ctx, cmd)
780 return cmd
781}
782
783// Masters shows a list of monitored masters and their state.
784func (c *SentinelClient) Masters(ctx context.Context) *SliceCmd {

Callers 2

sentinel_test.goFile · 0.80

Calls 2

ProcessMethod · 0.95
NewMapStringStringCmdFunction · 0.85

Tested by 1