0.7.5 • Published 4 years ago

@nestcfork/etcd v0.7.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

License

NestCloud is MIT licensed.