@jiaxinjiang/nest-nacos
Version:
Nacos component for NestJs.
18 lines • 559 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NacosConfigClient = void 0;
const nacos_1 = require("nacos");
class NacosConfigClient extends nacos_1.NacosConfigClient {
constructor(options) {
super(options);
}
get clusterOptions() {
const host = this.options.endpoint;
return {
name: `DiamondClient@${host}`,
port: this.options.leaderPort || 7789,
};
}
}
exports.NacosConfigClient = NacosConfigClient;
//# sourceMappingURL=nacos.config.client.js.map