node-eventstore-client
Version:
A port of the EventStore .Net ClientAPI to Node.js
9 lines (8 loc) • 340 B
JavaScript
function GossipSeed(endPoint, hostName, hostHeader) {
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;
this.hostHeader = hostHeader;
Object.freeze(this);
}
module.exports = GossipSeed;