NAME

Myriad::Service::Remote - abstraction to access other services over the network.

SYNOPSIS

my $remote_service = $api->service_by_name('service');
await $remote_service->call_api('some_method', %args);

DESCRIPTION

storage

Returns a Myriad::Service::Storage::Remote instance to access the remote service public storage.

call_rpc

Call a method on the remote service.

it takes

  • rpc - The remote method names.

  • args - A hash of the method arguments.

subscribe

Please use the Receiver attribute in Myriad.

This method is implemented for the sake of compatibility with the framework specs.

it subscribes to a channel in the remote service.

INHERITED METHODS

Object::Pad::UNIVERSAL

BUILDARGS