0.9.4 • Published 5 years ago
service-init v0.9.4
Service Init
Wraps the initialization tasks of a backend service.
Features
- A bunyan logger
- MQTT client connection via mqtt-topping
- A config query method which
- Bootstrap parameter returned by a query of a given uri with retries
Usage
var init = require("service-init");
var serviceId = "myService";
var bootstrapUri = "http://bootstrap-server.com/myService"; // process.env is used for bootstrapping if null
init(serviceId, bootstrapUri, (log, mqttClient, queryConfig, bootstrapData) => {
// application logic goes here
});
0.9.4
5 years ago
0.9.3
5 years ago
0.9.2
5 years ago
0.9.0
5 years ago
0.8.2
5 years ago
0.8.0
5 years ago
0.7.0
6 years ago
0.6.5
6 years ago
0.6.4
6 years ago
0.6.3
6 years ago
0.6.2
6 years ago
0.6.1
6 years ago
0.6.0
6 years ago
0.5.2
6 years ago
0.5.1
6 years ago
0.5.0
7 years ago
0.4.1
8 years ago
0.4.0
8 years ago
0.3.0
8 years ago
0.2.0
8 years ago
0.1.0
8 years ago