From c47dd03e8cd20c6e5d30634adf3991289e1bde50 Mon Sep 17 00:00:00 2001 From: Aleksey Proshutisnkiy Date: Thu, 31 Aug 2023 11:43:46 +0300 Subject: [PATCH] feat(builtin): add resolve_alias_opt [NET-528] (#50) --- builtin.aqua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/builtin.aqua b/builtin.aqua index bd7435f..9749e21 100644 --- a/builtin.aqua +++ b/builtin.aqua @@ -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.