This package has been deprecated

Author message:

Plz install your packages from nexus. More info at https://wiki.skbkontur.ru/display/node/Nexus

@skbkontur/cluster-client

1.0.2 • Public • Published

ClusterClient

Клиент для обращения к сервисам Контура.

Пример создания клиента для обращения к сервису

const {
  Topology,
  ClusterClient,
  strategies,
  senders
} = require('@skbkontur/cluster-client')
const { SequentialRequestStrategy } = strategies
const { RequestSender } = senders

const strategy = new SequentialRequestStrategy(3)
const requestSender = new RequestSender()

const topologyName = 'api.permissions'
const topology = new Topology(this._clusterConfig, topologyName)

return new ClusterClient(topology, strategy, requestSender)

Режим отладки

У модуля существует режим отладки. Для этого вам необходимо в переменные окружения добавить значение DEBUG=cluster-client*.

Пример того как вы можете запустить приложение с дебагом модуля @skbkontur/cluster-client на windows:

set DEBUG=cluster-client* && nodemon --inspect src

/@skbkontur/cluster-client/

    Package Sidebar

    Install

    npm i @skbkontur/cluster-client

    Weekly Downloads

    30

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    43.4 kB

    Total Files

    24

    Last publish

    Collaborators

    • dpeshkin
    • khlutkova
    • tihonove
    • ubitso4
    • zhzz
    • skbkontur-bot
    • fakefeik
    • original001
    • templeoftemplar
    • apocalyp0sys
    • lossir