fluence-js/packages/core/js-peer/aqua/single-module-srv.aqua
Pavel Murygin ba0ed1be72 Take one down, patch it around,
127 little bug in the code...
2023-02-08 01:47:35 +04:00

33 lines
844 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

alias Bytes : []u8
data ServiceCreationResult:
success: bool
service_id: ?string
error: ?string
data ReadFileResult:
success: bool
content: ?string
error: ?string
data RemoveResult:
success: bool
error: ?string
alias ListServiceResult: []string
service Srv("single_module_srv"):
-- Used to create a service on a certain node
-- Arguments:
-- bytes a base64 string containing the .wasm module to add.
-- Returns: service_id the service ID of the created service.
create(wasm_b64_content: string) -> ServiceCreationResult
-- Used to remove a service from a certain node
-- Arguments:
-- service_id ID of the service to remove
remove(service_id: string) -> RemoveResult
-- Returns a list of services ids running on a peer
list() -> ListServiceResult