disco-maps
v0.0.0
Published
easy network service discovery and advertising
Downloads
2
Readme
discomesh
easy network service discovery and advertising in Node.js
require: var disco = require('discomesh')
add a service: disco.addService(type, tag, port)
i.e.: disco.addService('riak', 'default', 8896)
delete a service: disco.deleteService(type, tag)
start a service: disco.startService(type, tag)
or, start upon add: disco.addService(type, tag).start()
stop a service: disco.stopService(type, tag)
watch for services: disco.watchService(type, tag, listener)
tag is optional. will emit all new services of type if not specified