feat(builtin): add resolve_alias_opt [NET-528] (#50)

This commit is contained in:
Aleksey Proshutisnkiy 2023-08-31 11:43:46 +03:00 committed by GitHub
parent 67edcbb584
commit c47dd03e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -243,6 +243,11 @@ service Srv("srv"):
-- Returns: service id associated with the given alias
resolve_alias(alias: string) -> string
-- Resolves given alias to a service id
-- If there's no such alias, returns nil
-- Returns: service id associated with the given alias or nil
resolve_alias_opt(alias: string) -> ?string
-- Retrieves the functional interface of a service running
-- on the node specified in the service call
-- Argument: service_id ID of the service whose interface you want to retrieve.