mirror of https://github.com/go-redis/redis.git
Add the master sentinel command
This commit is contained in:
parent
3c02e56ed9
commit
c340532290
|
@ -190,6 +190,13 @@ func (c *SentinelClient) FlushConfig() *StatusCmd {
|
|||
return cmd
|
||||
}
|
||||
|
||||
// Master shows the state and info of the specified master.
|
||||
func (c *SentinelClient) Master(name string) *StringStringMapCmd {
|
||||
cmd := NewStringStringMapCmd("sentinel", "master", name)
|
||||
c.Process(cmd)
|
||||
return cmd
|
||||
}
|
||||
|
||||
type sentinelFailover struct {
|
||||
sentinelAddrs []string
|
||||
|
||||
|
|
Loading…
Reference in New Issue