0.2.0 • Published 7 years ago

moleculer-config-rethinkdb v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

RethinkDB Adapter for Moleculer Config

Build Status Coverage Status

This package provides a RethinkDB adapter for storing moleculer-config settings.

Usage

const { ServiceMixin } = require("moleculer-config");
const Adapter = require("moleculer-config-rethinkdb");

// ...

const ConfigMixin = ServiceMixin({
	adapter: new Adapter({
		rOpts: {
			host: "rethinkdb",
			port: 28015,
		},
	}),
});

// ...

broker.createService({
	name: "config",
	mixins: [ConfigMixin],
});

All options comes from JSData's RethinkDB Adapter.