// Nodes retruns all the nodeStatuses in the etcd
Nodes retruns all the nodeStatuses in the etcd
// Nodes retruns all the nodeStatuses in the etcd
func (r *EtcdRegistry) Nodes(pctx context.Context, prefix string) ([]*Status, error) {
	ctx, cancel := context.WithTimeout(pctx, r.reqTimeout)
	defer cancel()
	resp, err := r.client.List(ctx, r.prefixed(prefix))
	if err != nil {
		return nil, errors.Trace(err)
	}
	status, err := nodesStatusFromEtcdNode(resp)
	if err != nil {
		return nil, errors.Trace(err)
	}
	return status, nil
}
func ( r * EtcdRegistry ) Nodes ( pctx context . Context , prefix string ) ( [ ] * Status , error ) { ctx , cancel := context . WithTimeout ( pctx , r . reqTimeout ) defer cancel ( ) resp , err := r . client . List ( ctx , r . prefixed ( prefix ) ) if err != nil { return nil , errors . Trace ( err ) } status , err := nodesStatusFromEtcdNode ( resp ) if err != nil { return nil , errors . Trace ( err ) } return status , nil }
Nodes retruns all the nodeStatuses in the etcd
Nodes retruns all the nodeStatuses in the etcd