1.0.2 • Published 6 years ago

@skbkontur/cluster-client v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

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
1.1.0-rc.3

6 years ago

1.1.0-rc.2

6 years ago

1.1.0-rc.1

6 years ago

1.0.2

6 years ago

0.3.5

6 years ago

1.0.1

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

1.0.0

6 years ago

1.0.0-rc.10

6 years ago

1.0.0-rc.9

6 years ago

1.0.0-rc.8

6 years ago

0.3.2

6 years ago

1.0.0-rc.7

6 years ago

1.0.0-rc.6

6 years ago

1.0.0-rc.5

6 years ago

1.0.0-rc.4

6 years ago

1.0.0-rc.3

6 years ago

1.0.0-rc.2

6 years ago

1.0.0-rc.1

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

7 years ago

0.0.1

7 years ago