Add the master sentinel command

This commit is contained in:
Étienne Michon 2019-02-21 18:13:04 +01:00
parent 3c02e56ed9
commit c340532290
No known key found for this signature in database
GPG Key ID: 3D0A46951838A869
1 changed files with 7 additions and 0 deletions

View File

@ -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