node-eventstore-client/src/gossipSeed.js
2018-07-09 10:27:12 -07:00

8 lines
296 B
JavaScript

function GossipSeed(endPoint, hostName) {
if (typeof endPoint !== 'object' || !endPoint.host || !endPoint.port) throw new TypeError('endPoint must be have host and port properties.');
this.endPoint = endPoint;
this.hostName = hostName;
Object.freeze(this);
}
module.exports = GossipSeed;