func (s *CatNodesService) Local(local bool) *CatNodesService {
	s.local = &local
	return s
}
Format indicates that the JSON response be indented and human readable.
func (s *CatNodesService) Format(format string) *CatNodesService {
if format != "" {
s.format = format
} else {
s.format = "json"
}
return s
}
Local indicates whether to return local information. If it is true,
we do not retrieve the state from master node (default: false).
package elastic
import (
	"context"
	"fmt"
	"net/url"
)
type CatNodesService struct {
	client        *Client
	format        string
	local         *bool
	masterTimeout string
}
func NewCatNodesService(client *Client) *CatNodesService {
	return &CatNodesService{
		client: client,
		format: "json",
	}
}