@@ -228,19 +228,14 @@ func (c *SentinelClient) CkQuorum(name string) *StringCmd {
228
228
}
229
229
230
230
// Monitor tells the Sentinel to start monitoring a new master with the specified
231
- // name, ip, port, and quorum. It is identical to the sentinel monitor configuration
232
- // directive in sentinel.conf configuration file, with the difference that you can't
233
- // use an hostname in as ip, but you need to provide an IPv4 or IPv6 address.
231
+ // name, ip, port, and quorum.
234
232
func (c * SentinelClient ) Monitor (name , ip , port , quorum string ) * StringCmd {
235
233
cmd := NewStringCmd ("sentinel" , "monitor" , name , ip , port , quorum )
236
234
c .Process (cmd )
237
235
return cmd
238
236
}
239
237
240
238
// Set is used in order to change configuration parameters of a specific master.
241
- // Multiple option / value pairs can be specified (or none at all). All the
242
- // configuration parameters that can be configured via sentinel.conf are also
243
- // configurable using the SET command.
244
239
func (c * SentinelClient ) Set (name , option , value string ) * StringCmd {
245
240
cmd := NewStringCmd ("sentinel" , "set" , name , option , value )
246
241
c .Process (cmd )
@@ -249,7 +244,7 @@ func (c *SentinelClient) Set(name, option, value string) *StringCmd {
249
244
250
245
// Remove is used in order to remove the specified master: the master will no
251
246
// longer be monitored, and will totally be removed from the internal state of
252
- // the Sentinel, so it will no longer listed by SENTINEL masters and so forth .
247
+ // the Sentinel.
253
248
func (c * SentinelClient ) Remove (name string ) * StringCmd {
254
249
cmd := NewStringCmd ("sentinel" , "remove" , name )
255
250
c .Process (cmd )
0 commit comments