mirror of
https://github.com/Spengreb/sync.git
synced 2026-05-14 03:32:06 +00:00
23 lines
453 B
JavaScript
23 lines
453 B
JavaScript
class BackendConfiguration {
|
|
constructor(config) {
|
|
this.config = config;
|
|
}
|
|
|
|
getRedisConfig() {
|
|
return this.config.redis;
|
|
}
|
|
|
|
getListenerConfig() {
|
|
return this.config.proxy.listeners.map(listener => ({
|
|
getHost() {
|
|
return listener.host;
|
|
},
|
|
|
|
getPort() {
|
|
return listener.port;
|
|
}
|
|
}));
|
|
}
|
|
}
|
|
|
|
export { BackendConfiguration };
|