// queryNodesByKind returns specified nodes, like pumps/drainers
queryNodesByKind returns specified nodes, like pumps/drainers
// queryNodesByKind returns specified nodes like pumps / drainers
func queryNodesByKind(urls string, kind string) error {
	registry, err := createRegistry(urls)
	if err != nil {
		return errors.Trace(err)
	}
	nodes, err := registry.Nodes(context.Background(), nodePrefix[kind])
	if err != nil {
		return errors.Trace(err)
	}
	for _, n := range nodes {
		log.Infof("%s: %+v", kind, n)
	}
	return nil
}
func queryNodesByKind ( urls string , kind string ) error { registry , err := createRegistry ( urls ) if err != nil { return errors . Trace ( err ) } nodes , err := registry . Nodes ( context . Background ( ) , nodePrefix [ kind ] ) if err != nil { return errors . Trace ( err ) } for _ , n := range nodes { log . Infof ( " " , kind , n ) } return nil }
queryNodesByKind returns specified nodes, like pumps/drainers
queryNodesByKind returns specified nodes like pumps / drainers