GetNodes returns all cluster members that are part of the cluster. If this server is not clustered, a list with a single member whose address is 0.0.0.0 is returned.
(ctx context.Context)
| 405 | // |
| 406 | // If this server is not clustered, a list with a single member whose address is 0.0.0.0 is returned. |
| 407 | func (c *ClusterTx) GetNodes(ctx context.Context) ([]NodeInfo, error) { |
| 408 | return c.nodes(ctx, false /* not pending */, "") |
| 409 | } |
| 410 | |
| 411 | // GetNodesCount returns the number of members in the cluster. |
| 412 | // |