0.1.3 • Published 5 years ago
@crossworth/service-manager v0.1.3
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.