-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathBtwProxyAndServiceModule.js
More file actions
72 lines (66 loc) · 1.76 KB
/
Copy pathBtwProxyAndServiceModule.js
File metadata and controls
72 lines (66 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
const EugProtocolModular = require('./EugProtocolModular')
const EugPacketStruct = require('./EugPacketStruct')
const Express = require('express')()
const Router = require('express').Router;
const EugProtocolModulars = require('./EugProtocolModulars')
const EugServerState = require('./EugServerState')
const EventEmitter = require('events')
class EugEmitter extends EventEmitter{}
const EugRCON = require('./EugRCON')
/**
* @class
*/
class BtwProxyAndServiceModule {
/**
* @constructor
* @param {EugServerState} serverState
* @param {EugEmitter} eugEmitter
* @param {EugRCON} eugRCON
* @param {BtwProxyAndServiceModule[]} importedModules
* @param {String} absolutePath
*/
constructor(serverState, eugEmitter, eugRCON, importedModules, absolutePath){
this.serverState = serverState;
this.eugEmitter = eugEmitter;
this.eugRCON = eugRCON;
this.importedModules = importedModules;
this.absolutePath = absolutePath;
/**
* @type {{name:String, path:String}}
*/
this.moduleInfo;
}
/**@member {boolean} */
set enabled(value){this._enabled = value}
get enabled() {return this._enabled}
/**
* @function
* @param {SocketIO.Server} io
* @returns {Express | Router}
*/
publicRouter(io){
}
/**
* @function
* @param {SocketIO.Server} io
* @returns {Express | Router}
*/
adminRouter(io){
}
/**
* @function
*/
close(){
}
/**
* @function
* @returns {EugProtocolModulars}
*/
get ProtocolModulars() {
return {
proxyToService: new Object(),
serviceToProxy: new Object(),
}
}
}
module.exports = BtwProxyAndServiceModule