Skip to content

Latest commit

 

History

History

etcd

NestCloud - Etcd

NPM Version Package License NPM Downloads Travis Linux Coverage

Description

Etcd module for nestcloud

Installation

$ npm i --save @nestcloud/etcd etcd3

Quick Start

Import Module

import { Module } from '@nestjs/common';
import { EtcdModule } from '@nestcloud/etcd';

@Module({
  imports: [
      EtcdModule.forRoot(),
  ],
})
export class AppModule {
}

Usage

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,
  ) {
  }
}

Stay in touch

License

NestCloud is MIT licensed.