« blib/lib/auto/share/dist/Beekeeper/basic/client.pl
↑ Summary
blib/lib/auto/share/dist/Beekeeper/basic/lib/MyWorker.pm »
| 1 | package MyClient; | ||
| 2 | |||
| 3 | use strict; | ||
| 4 | use warnings; | ||
| 5 | |||
| 6 | use Beekeeper::Client; | ||
| 7 | |||
| 8 | |||
| 9 | sub uppercase { | ||
| 10 | my ($class, $str) = @_; | ||
| 11 | |||
| 12 | my $client = Beekeeper::Client->instance; | ||
| 13 | |||
| 14 | my $resp = $client->call_remote( | ||
| 15 | method => 'myapp.str.uc', | ||
| 16 | params => { string => $str }, | ||
| 17 | ); | ||
| 18 | |||
| 19 | return $resp->result; | ||
| 20 | } | ||
| 21 | |||
| 22 | 1; |