Expose master interfaces to plugin

Expose Express.js app, master config, instance and slave database, slave
connections and metrics to the master plugins.
This commit is contained in:
Hornwitser committed 2020-03-13 22:46:17 +01:00
1 parent cb1d744060
commit 090fbd6dff
2 files changed
+6 -10

No files matched your search

+3 -1
View File
@@ -74,8 +74,10 @@ class BaseInstancePlugin {
}
class BaseMasterPlugin {
constructor(info) {
constructor(info, master, metrics) {
this.info = info;
this.master = master;
this.metrics = metrics;
}
/**