prdn / pigato

PIGATO - an high-performance Node.js microservices framework
http://prdn.github.io/pigato/
MIT License
301 stars 31 forks source link

Directory with no params #54

Closed maxired closed 9 years ago

maxired commented 9 years ago

Hi,

I which I could have a map of all Services and the associated workers . This is what this PR is about. The initial behaviour is not changed, but when we call the Directory service without params , then it will answer with all informations such as :

{ '$dir': [ 'Wdff93f41-da48-4d62-9e0e-1ed4a7edb4cc' ],
  '34ae6651-be07-465c-b36f-c89d4950aa5a': [],
  'ab3c68ac-6d3f-4f44-ae75-61bf6562e77d': [],
  '997158b7-d02d-4b19-a50a-aa81452d804e': 
   [ 'W95b7de34-1288-44c8-b156-a1b89b85e0d3',
     'W0ad5d114-be0c-47e2-9b92-24ae4324da36',
     'Wecfa220c-a1cb-4b1e-94a2-2d0f92619a43' ],
  '2a67a762-c309-4ac8-adeb-6b99f6ca5a06': 
   [ 'W9e2d5a9b-2ce1-4d0e-8734-5e05a414921e',
     'We6e1286f-ca1b-4345-8885-9154353a4e55',
     'W98809557-6275-4e95-bc8d-f94c5324fa62' ] }