GitBook: [main] 54 pages and 18 assets modified

This commit is contained in:
boneyard93501 2021-05-07 23:41:06 +00:00 committed by gitbook-bot
parent 0a5a7f62c8
commit 96022bd593
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF
12 changed files with 15 additions and 15 deletions

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

Before

Width:  |  Height:  |  Size: 86 KiB

After

Width:  |  Height:  |  Size: 86 KiB

View File

@ -23,7 +23,7 @@ AIR instructions are intended to launch the execution of a service method as fol
4. The arguments specified by the argument list are passed to the method
5. The result of the method returned under the name output name
**Figure 2: Sequential Instruction** ![Execution](../../.gitbook/assets/air_sequential_2%20%281%29.png)
**Figure 2: Sequential Instruction** ![Execution](../../.gitbook/assets/air_sequential_2%20%281%29%20%281%29%20%281%29%20%281%29.png)
The seq instruction takes two instructions at most as its arguments and executes them sequentially, one after the other.
@ -33,7 +33,7 @@ The par</i.> instruction takes two instructions at most as its arguments a
TODO: add better graphic showing the disticntion of branching vs seq.
**Figure 4: Fold Instruction** ![Execution](../../.gitbook/assets/air_fold_4.png)
**Figure 4: Fold Instruction** ![Execution](../../.gitbook/assets/air_fold_4%20%281%29%20%282%29%20%282%29%20%281%29.png)
The fold instruction iterates over the elements of an array and workds as follows:
@ -49,7 +49,7 @@ This instruction is intended for organizing branches in the flow of execution as
* The first instruction is executed and if the execution is successful, then the second instruction is ignored
* If the first instruction fails, then the second one is executed.
**Figure 6: Null Instruction** ![Execution](../../.gitbook/assets/air_null_6.png)
**Figure 6: Null Instruction** ![Execution](../../.gitbook/assets/air_null_6%20%281%29%20%282%29%20%282%29%20%282%29.png)
This is an empty instruction: it takes no arguments and does nothing. The null instruction is useful for generating code.

View File

@ -18,7 +18,7 @@ Please note that the [`fldist`](../knowledge_tools.md#fluence-proto-distributor-
### API
#### peer is_connected
#### peer is\_connected
Checks if there is a direct connection to the peer identified by a given PeerId
@ -50,7 +50,7 @@ Example of a service call:
)
```
#### peer get_contact
#### peer get\_contact
Resolves the contact of a peer via [Kademlia](https://en.wikipedia.org/wiki/Kademlia)
@ -89,7 +89,7 @@ Example of service call:
(call node ("peer" "identify") [] info) peer timestamp_ms
```
#### peer timestamp_ms
#### peer timestamp\_ms
Get Unix timestamp in milliseconds
@ -102,7 +102,7 @@ Example of service call:
(call node ("peer" "timestamp_ms") [] ts_ms)
```
#### peer timestamp_sec
#### peer timestamp\_sec
Get Unix timestamp in seconds
@ -157,7 +157,7 @@ Example of service call:
(call node ("srv" "list") [] services)
```
#### srv add_alias
#### srv add\_alias
Adds an alias on service, so service could be called not only by service\_id but by alias.
@ -170,7 +170,7 @@ Example of service call:
(call node ("srv" "add_alias") [alias service_id])
```
#### srv get_interface
#### srv get\_interface
Retrieves the functional interface of a service running on the node specified in the service call.
@ -191,7 +191,7 @@ Example of service call:
(call node ("srv" "get_interface") [service_id] interface)
```
#### dist add_module
#### dist add\_module
Used to add modules to the node specified in the service call.
@ -212,7 +212,7 @@ Example of service call:
(call node ("dist" "add_module") [bytes config] hash)
```
#### dist list_modules
#### dist list\_modules
Get a list of modules available on the node
@ -235,7 +235,7 @@ Example of service call:
(call node ("dist" "list_modules") [] modules)
```
#### dist get_module_interface
#### dist get\_module\_interface
Get the interface of a module
@ -363,9 +363,9 @@ Example of service call:
(call node ("op" "identity") [args] result)
```
#### deprecated add_provider
#### 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:
@ -385,7 +385,7 @@ Example of service call:
(call node ("deprecated" "add_provider") [key provider])
```
#### deprecated get_providers
#### deprecated get\_providers
Used in service aliasing to retrieve providers for a given key.