GitBook: [main] 53 pages and 14 assets modified

This commit is contained in:
boneyard93501
2021-05-08 00:47:34 +00:00
committed by gitbook-bot
parent 84e814d02d
commit b383a8a319
29 changed files with 40 additions and 82 deletions

View File

@ -14,12 +14,10 @@ Each Fluence peer is equipped with a set of "built-in" services that can be call
Please note that the [`fldist`](../knowledge_tools.md#fluence-proto-distributor-fldist) CLI tool, as well as the [JS SDK](../knowledge_tools.md#fluence-js-sdk), provide access to node-based services.
## API
### peer is\_connected
Checks if there is a direct connection to the peer identified by a given PeerId
* **Arguments**:
@ -89,7 +87,6 @@ Example of service call:
### peer timestamp\_ms
Get Unix timestamp in milliseconds
* **Arguments**: None
@ -103,7 +100,6 @@ Example of service call:
### peer timestamp\_sec
Get Unix timestamp in seconds
* **Arguments**: None
@ -365,8 +361,7 @@ Example of service call:
### deprecated add\_provider
Used in service aliasing. _\*\*_Stores the specified service provider \(provider\) in the internal storage of the node indicated in the service call and associates it with the given key \(key\). After executing add\_provider, the provider can be accessed via the get\_providers service using this key.
Used in service aliasing. \_\*\*\_Stores the specified service provider \(provider\) in the internal storage of the node indicated in the service call and associates it with the given key \(key\). After executing add\_provider, the provider can be accessed via the get\_providers service using this key.
* Arguments:
@ -394,7 +389,6 @@ Used in service aliasing to retrieve providers for a given key.
* Returns: an array of objects of the following structure:
```javascript
{
"peer": "123D...", // required field
"service_id": "uuid-1234-..." // optional field
@ -404,7 +398,6 @@ Used in service aliasing to retrieve providers for a given key.
Example of service call:
```scheme
(call node ("deprecated" "get_providers") [key] providers)
```