mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 07:24:53 +09:00
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:
1 parent
cb1d744060
commit
090fbd6dff
2 files changed
+6
-10
No files matched your search
+3
-1
@@ -74,8 +74,10 @@ class BaseInstancePlugin {
|
||||
}
|
||||
|
||||
class BaseMasterPlugin {
|
||||
constructor(info) {
|
||||
constructor(info, master, metrics) {
|
||||
this.info = info;
|
||||
this.master = master;
|
||||
this.metrics = metrics;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user