Etcd module for nestcloud
$ npm i --save @nestcloud/etcd etcd3
import { Module } from '@nestjs/common';
import { EtcdModule } from '@nestcloud/etcd';
@Module({
imports: [
EtcdModule.forRoot(),
],
})
export class AppModule {
}
import { Injectable } from '@nestjs/common';
import { IEtcd } from '@nestcloud/common';
import { InjectEtcd } from '@nestcloud/etcd';
@Injectable()
export class TestService {
constructor(
@InjectEtcd() private readonly etcd: IEtcd,
) {
}
}
- Author - NestCloud
NestCloud is MIT licensed.