Socket
Book a DemoInstallSign in
Socket

@skbkontur/cluster-client

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@skbkontur/cluster-client

skbkontur cluster client

1.0.2
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
5
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 03 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.