func (c *Client) GetNodes() ([]services.Server, error) {
	out, err := c.Get(c.Endpoint("nodes"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var re []services.Server
	if err := json.Unmarshal(out.Bytes(), &re); err != nil {
		return nil, trace.Wrap(err)
	}
	return re, nil
}
// GetNodes returns the list of servers registered in the cluster.
GetNodes returns the list of servers registered in the cluster.
// GetNodes returns the list of servers registered in the cluster .
func (c *Client) GetNodes() ([]services.Server, error) {
	out, err := c.Get(c.Endpoint("nodes"), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	var re []services.Server
	if err := json.Unmarshal(out.Bytes(), &re); err != nil {
		return nil, trace.Wrap(err)
	}
	return re, nil
}
func ( c * Client ) GetNodes ( ) ( [ ] services . Server , error ) { out , err := c . Get ( c . Endpoint ( " " ) , url . Values { } ) if err != nil { return nil , trace . Wrap ( err ) } var re [ ] services . Server if err := json . Unmarshal ( out . Bytes ( ) , & re ) ; err != nil { return nil , trace . Wrap ( err ) } return re , nil }
GetNodes returns the list of servers registered in the cluster.
GetNodes returns the list of servers registered in the cluster .