0.8.5 • Published 2 years ago
@nestcloud2/etcd v0.8.5
NestCloud - Etcd
Description
Etcd module for nestcloud
Installation
$ npm i --save @nestcloud2/etcd etcd3
Quick Start
Import Module
import { Module } from '@nestjs/common';
import { EtcdModule } from '@nestcloud2/etcd';
@Module({
imports: [EtcdModule.forRoot()],
})
export class AppModule {}
Usage
import { Injectable } from '@nestjs/common';
import { IEtcd } from '@nestcloud2/common';
import { InjectEtcd } from '@nestcloud2/etcd';
@Injectable()
export class TestService {
constructor(@InjectEtcd() private readonly etcd: IEtcd) {}
}
Stay in touch
- Author - NestCloud
License
NestCloud is MIT licensed.