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

Method GetMasterAddrByName

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

Source from the content-addressed store, hash-verified

736}
737
738func (c *SentinelClient) GetMasterAddrByName(ctx context.Context, name string) *StringSliceCmd {
739 cmd := NewStringSliceCmd(ctx, "sentinel", "get-master-addr-by-name", name)
740 _ = c.Process(ctx, cmd)
741 return cmd
742}
743
744func (c *SentinelClient) Sentinels(ctx context.Context, name string) *MapStringStringSliceCmd {
745 cmd := NewMapStringStringSliceCmd(ctx, "sentinel", "sentinels", name)

Callers 3

MasterAddrMethod · 0.95
sentinel_test.goFile · 0.80
getMasterAddrMethod · 0.80

Calls 2

ProcessMethod · 0.95
NewStringSliceCmdFunction · 0.85

Tested by

no test coverage detected