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