NAME
Myriad::Registry - track available methods and subscriptions
SYNOPSIS
DESCRIPTION
Used internally within Myriad for keeping track of what services are available, and what they can do.
add_service
Instantiates and adds a new service to the "loop".
Returns the service instance.
service_by_name
Looks up the given service, returning the instance if it exists.
Will throw an exception if the service cannot be found.
add_rpc
Registers a new RPC method for the given class.
rpc_for
Returns a hashref of RPC definitions for the given class.
add_batch
Registers a new batch method for the given class.
batches_for
Returns a hashref of batch methods for the given class.
add_emitter
Registers a new emitter method for the given class.
emitters_for
Returns a hashref of emitter methods for the given class.
add_receiver
Registers a new receiver method for the given class.
receivers_for
Returns a hashref of receiver methods for the given class.
make_service_name
Reformat a given string to make it combatible with our services naming strategy
it takes the following args:
name - a String with the original name
namespace - If available the service name will not contain the namespace
INHERITED METHODS
- IO::Async::Notifier
-
add_child, adopt_future, adopted_futures, can_event, children, configure, configure_unknown, debug_printf, get_loop, invoke_error, invoke_event, loop, make_event_cb, maybe_invoke_event, maybe_make_event_cb, notifier_name, parent, remove_child, remove_from_parent
- Object::Pad::UNIVERSAL
AUTHOR
Deriv Group Services Ltd. DERIV@cpan.org
.
See "CONTRIBUTORS" in Myriad for full details.
LICENSE
Copyright Deriv Group Services Ltd 2020-2022. Licensed under the same terms as Perl itself.