Skip to content

Files

Latest commit

7f9555f · Oct 29, 2020

History

History

etcd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 6, 2020
Sep 17, 2020
Jan 19, 2020
Jan 6, 2020
Jan 6, 2020
Aug 12, 2020
Jan 6, 2020
Jan 15, 2020
Oct 29, 2020
Jan 4, 2020
Jan 6, 2020
Oct 29, 2020
Nov 18, 2019

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.