node-eventstore-client/src/core/staticEndpointDiscoverer.js

14 lines
374 B
JavaScript
Raw Normal View History

2016-03-09 20:46:15 +00:00
var when = require('when');
function StaticEndpointDiscoverer(tcpEndPoint, useSsl) {
this._nodeEndpoints = {
tcpEndPoint: useSsl ? null : tcpEndPoint,
secureTcpEndPoint: useSsl ? tcpEndPoint : null
}
}
StaticEndpointDiscoverer.prototype.discover = function(failedTcpEndpoint) {
return when(this._nodeEndpoints);
};
module.exports = StaticEndpointDiscoverer;