Master shows the state and info of the specified master.
(ctx context.Context, name string)
| 775 | |
| 776 | // Master shows the state and info of the specified master. |
| 777 | func (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. |
| 784 | func (c *SentinelClient) Masters(ctx context.Context) *SliceCmd { |