Copyright © 2013-2022 Michael Truog
Version: 2.0.5 Oct 26 2023 12:17:22 ------------------------------------------------------------------------
Authors: Michael Truog (mjtruog at protonmail dot com).
agent() = context() | cloudi_service:dispatcher()
bytestring() = [byte()]
context() = #cloudi_context{dest_refresh = cloudi_service_api:dest_refresh(), dest_refresh_delay = cloudi_service_api:dest_refresh_delay_value_milliseconds(), request_name_lookup = sync | async, timeout_async = cloudi_service_api:timeout_send_async_value_milliseconds(), timeout_sync = cloudi_service_api:timeout_send_sync_value_milliseconds(), priority_default = cloudi_service_api:priority(), scope = atom(), receiver = pid(), uuid_generator = uuid:state(), cpg_data = cpg_data:state(), cpg_data_stale = boolean()}
dispatcher() = cloudi_service:dispatcher()
error_reason() = timeout
message_service_request() = {Type::cloudi_service_send_async | cloudi_service_send_sync, Name::service_name(), Pattern::service_name_pattern(), RequestInfo::request_info(), Request::request(), Timeout::timeout_value_milliseconds(), Priority::priority_value(), TransId::trans_id(), Source::pid()}
message_service_response() = {Type::cloudi_service_return_async | cloudi_service_return_sync, Name::service_name(), Pattern::service_name_pattern(), ResponseInfo::response_info(), Response::response(), Timeout::timeout_value_milliseconds(), TransId::trans_id(), Source::pid()}
nonempty_bytestring() = [byte(), ...]
options() = [{dest_refresh, cloudi_service_api:dest_refresh()} | {dest_refresh_start, cloudi_service_api:dest_refresh_delay_period()} | {dest_refresh_delay, cloudi_service_api:dest_refresh_delay_period()} | {request_name_lookup, sync | async} | {timeout_async, cloudi_service_api:timeout_send_async_period()} | {timeout_sync, cloudi_service_api:timeout_send_sync_period()} | {priority_default, priority()} | {scope, atom()} | {uuid, uuid:state()} | {groups, cpg_data:state()} | {groups_scope, atom()} | {groups_static, boolean()}]
pattern_pid() = {service_name_pattern(), pid()}
priority() = priority_value() | undefined
priority_value() = cloudi_service_api:priority()
request() = any()
request_info() = any()
request_type() = cloudi_service:request_type()
response() = any()
response_info() = any()
service_name() = nonempty_bytestring()
service_name_pattern() = nonempty_bytestring()
service_name_pattern_suffix() = bytestring()
timeout_milliseconds() = timeout_value_milliseconds() | undefined | limit_min | limit_max
timeout_period() = {pos_integer(), second | seconds | minute | minutes | hour | hours | day | days} | timeout_milliseconds()
timeout_value_milliseconds() = 0..4294967295
trans_id() = <<_:128>>
version 1 UUID
destination_refresh_immediate(Context::agent()) -> boolean()
destination_refresh_lazy(Context::agent()) -> boolean()
destinations_refresh(Context::context(), Message::{cloudi_cpg_data, cpg_data:state()}) -> context()
get_pid(Context::agent(), Name::service_name()) -> {{ok, PatternPid::pattern_pid()} | {error, Reason::error_reason()}, agent()}
get_pid(Context::agent(), Name::service_name(), Timeout::timeout_period()) -> {{ok, PatternPid::pattern_pid()} | {error, Reason::error_reason()}, agent()}
get_pids(Context::agent(), Name::service_name()) -> {{ok, PatternPids::[pattern_pid()]} | {error, Reason::error_reason()}, agent()}
get_pids(Context::agent(), Name::service_name(), Timeout::timeout_period()) -> {{ok, PatternPids::[pattern_pid()]} | {error, Reason::error_reason()}, agent()}
mcast_async(Context::agent(), Name::service_name(), Request::request()) -> {{ok, TransIdList::[trans_id()]} | {error, Reason::error_reason()}, agent()}
mcast_async(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period()) -> {{ok, TransIdList::[trans_id()]} | {error, Reason::error_reason()}, agent()}
mcast_async(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority()) -> {{ok, TransIdList::[trans_id()]} | {error, Reason::error_reason()}, agent()}
mcast_async_passive(Context::agent(), Name::service_name(), Request::request()) -> {{ok, TransIdList::[trans_id()]} | {error, Reason::error_reason()}, agent()}
mcast_async_passive(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period()) -> {{ok, TransIdList::[trans_id()]} | {error, Reason::error_reason()}, agent()}
mcast_async_passive(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority()) -> {{ok, TransIdList::[trans_id()]} | {error, Reason::error_reason()}, agent()}
new() -> context()
priority_default(Context::agent()) -> PriorityDefault::cloudi_service_api:priority()
recv_async(Context::agent()) -> {{ok, ResponseInfo::response_info(), Response::response(), TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
recv_async(Context::agent(), TransId_Timeout::trans_id() | timeout_period()) -> {{ok, ResponseInfo::response_info(), Response::response(), TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
recv_async(Context::agent(), Timeout::timeout_period(), TransId::trans_id()) -> {{ok, ResponseInfo::response_info(), Response::response(), TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
recv_asyncs(Context::agent(), TransIdList::[trans_id()]) -> {{ok, [{ResponseInfo::response_info(), Response::response(), TransId::trans_id()}]} | {error, Reason::error_reason()}, agent()}
recv_asyncs(Context::agent(), Timeout::timeout_period(), TransIdList::[trans_id()]) -> {{ok, [{ResponseInfo::response_info(), Response::response(), TransId::trans_id()}]} | {error, Reason::error_reason()}, agent()}
send_async(Context::agent(), Name::service_name(), Request::request()) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period()) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period(), PatternPid::pattern_pid() | undefined) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority()) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority(), PatternPid::pattern_pid() | undefined) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async_passive(Context::agent(), Name::service_name(), Request::request()) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async_passive(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period()) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async_passive(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period(), PatternPid::pattern_pid() | undefined) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async_passive(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority()) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_async_passive(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority(), PatternPid::pattern_pid() | undefined) -> {{ok, TransId::trans_id()} | {error, Reason::error_reason()}, agent()}
send_sync(Context::agent(), Name::service_name(), Request::request()) -> {{ok, ResponseInfo::response_info(), Response::response()} | {ok, Response::response()} | {error, Reason::error_reason()}, agent()}
send_sync(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period()) -> {{ok, ResponseInfo::response_info(), Response::response()} | {ok, Response::response()} | {error, Reason::error_reason()}, agent()}
send_sync(Context::agent(), Name::service_name(), Request::request(), Timeout::timeout_period(), PatternPid::pattern_pid() | undefined) -> {{ok, ResponseInfo::response_info(), Response::response()} | {ok, Response::response()} | {error, Reason::error_reason()}, agent()}
send_sync(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority()) -> {{ok, ResponseInfo::response_info(), Response::response()} | {ok, Response::response()} | {error, Reason::error_reason()}, agent()}
send_sync(Context::agent(), Name::service_name(), RequestInfo::request_info(), Request::request(), Timeout::timeout_period(), Priority::priority(), PatternPid::pattern_pid() | undefined) -> {{ok, ResponseInfo::response_info(), Response::response()} | {ok, Response::response()} | {error, Reason::error_reason()}, agent()}
timeout_async(Context::agent()) -> TimeoutAsync::cloudi_service_api:timeout_send_async_value_milliseconds()
timeout_max(Context::agent()) -> 4294967295
timeout_sync(Context::agent()) -> TimeoutSync::cloudi_service_api:timeout_send_sync_value_milliseconds()
trans_id(Context::agent()) -> {trans_id(), agent()}
trans_id_age(TransId::trans_id()) -> non_neg_integer()
Generated by EDoc