0.9.4 • Published 6 years ago

service-init v0.9.4

Weekly downloads
12
License
MIT
Repository
github
Last release
6 years ago

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

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.0

6 years ago

0.8.2

6 years ago

0.8.0

6 years ago

0.7.0

7 years ago

0.6.5

7 years ago

0.6.4

7 years ago

0.6.3

7 years ago

0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.2

7 years ago

0.5.1

7 years ago

0.5.0

8 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.0

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago