1.0.2 • Published 7 years ago

@skbkontur/cluster-client v1.0.2

Weekly downloads
1
License
ISC
Repository
-
Last release
7 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

7 years ago

1.1.0-rc.2

7 years ago

1.1.0-rc.1

7 years ago

1.0.2

7 years ago

0.3.5

7 years ago

1.0.1

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

1.0.0

7 years ago

1.0.0-rc.10

7 years ago

1.0.0-rc.9

7 years ago

1.0.0-rc.8

7 years ago

0.3.2

7 years ago

1.0.0-rc.7

7 years ago

1.0.0-rc.6

7 years ago

1.0.0-rc.5

7 years ago

1.0.0-rc.4

7 years ago

1.0.0-rc.3

7 years ago

1.0.0-rc.2

7 years ago

1.0.0-rc.1

7 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago