node-eventstore-client/src/core/staticEndpointDiscoverer.js
2016-03-09 16:09:18 -08:00

12 lines
356 B
JavaScript

function StaticEndpointDiscoverer(tcpEndPoint, useSsl) {
this._nodeEndpoints = {
tcpEndPoint: useSsl ? null : tcpEndPoint,
secureTcpEndPoint: useSsl ? tcpEndPoint : null
}
}
StaticEndpointDiscoverer.prototype.discover = function(failedTcpEndpoint) {
return Promise.resolve(this._nodeEndpoints);
};
module.exports = StaticEndpointDiscoverer;