sentinel.go
func (s *Sentinel) SlaveAddrs() ([]string, error) {
	res, err := s.doUntilSuccess(func(c redis.Conn) (interface{}, error) {
		return queryForSlaveAddrs(c, s.MasterName)
	})
	if err != nil {
		return nil, err
	}
	return res.([]string), nil
}
func (s *Sentinel) SlaveAddrs() ([]string, error) {
	res, err := s.doUntilSuccess(func(c redis.Conn) (interface{}, error) {
		return queryForSlaveAddrs(c, s.MasterName)
	})
	if err != nil {
		return nil, err
	}
	return res.([]string), nil
}
func ( s * Sentinel ) SlaveAddrs ( ) ( [ ] string , error ) { res , err := s . doUntilSuccess ( func ( c redis . Conn ) ( interface { } , error ) { return queryForSlaveAddrs ( c , s . MasterName ) } ) if err != nil { return nil , err } return res . ( [ ] string ) , nil }
// SlaveAddrs returns a slice with known slave addresses of current master instance.
SlaveAddrs returns a slice with known slave addresses of current master instance .