Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
5
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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc