@crossworth/service-manager
v0.1.3
Published
A client for a simple service manager
Downloads
5
Readme
Javascript client for https://github.com/crossworth/service-manager
Example usage:
const serviceManager = require('@crossworth/service-manager');
const PORT = 8080;
serviceManager.register({
name: 'MyService',
managerEndpoint: 'http://localhost:8080',
endpoint: serviceManager.getLocalIP() + ':' + PORT,
value: 'my value',
});
You can provide a function
to the value
as well.