Skip to content

Kronos-Integration/service-swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm License bundlejs downloads GitHub Issues Build Status Styled with prettier Commitizen friendly Known Vulnerabilities Coverage Status

@kronos-integration/service-swarm

Manage a set of remote services

API

Table of Contents

PEERS_NAME_PREFIX

Endpoint name prefix for peers endpoints.

Type: string

PeersEndpoint

Extends MultiSendEndpoint

Endpoint to link against a swarm topic.

Parameters

  • name string endpoint name

  • owner Object owner of the endpoint

  • options Object

    • options.topic string defaults to endpoint name (without @see PEERS_NAME_PREFIX)

Properties

ServiceSwarm

Extends Service

Swarm detecting sync service.

endpointFactoryFromConfig

On demand create topic endpoints.

Parameters

Returns Class TopicEndpoint if name starts with 'topic.'

name

Returns string 'swarm'

TOPIC_NAME_PREFIX

Endpoint name prefix for topic endpoints.

Type: string

TopicEndpoint

Extends MultiSendEndpoint

Endpoint to link against a swarm topic.

Parameters

  • name string endpoint name

  • owner Object owner of the endpoint

  • options Object

    • options.topic string defaults to endpoint name (without @see TOPIC_NAME_PREFIX)

Properties

Topic

Parameters

Properties

install

With npm do:

npm install @kronos-integration/service-swarm

license

BSD-2-Clause