@kronos-integration/service-swarm
v1.9.86
Published
manage a set of remote services
Downloads
234
Readme
@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 nameowner
Object owner of the endpointoptions
Object (optional, default{}
)options.topic
string defaults to endpoint name (without @see PEERS_NAME_PREFIX)
Properties
topic
Topic
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 nameowner
Object owner of the endpointoptions
Object (optional, default{}
)options.topic
string defaults to endpoint name (without @see TOPIC_NAME_PREFIX)
Properties
topic
Topic
Topic
Parameters
service
ServiceSwarmname
stringoptions
Object (optional, default{}
)
Properties
service
ServiceSwarmname
stringoptions
Objectkey
BuffertopicEndpoints
Set<TopicEndppoint>peerEndpoints
Set<PeerEndpoint>
install
With npm do:
npm install @kronos-integration/service-swarm
license
BSD-2-Clause