line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Async::Microservice::HelloWorld; |
2
|
1
|
|
|
1
|
|
1582
|
use Moose; |
|
1
|
|
|
|
|
558540
|
|
|
1
|
|
|
|
|
9
|
|
3
|
|
|
|
|
|
|
with qw(Async::Microservice); |
4
|
0
|
|
|
0
|
0
|
|
sub service_name {return 'asmi-helloworld';} |
5
|
0
|
|
|
0
|
0
|
|
sub get_routes {return ('hello' => {defaults => {GET => 'GET_hello'}});} |
6
|
|
|
|
|
|
|
sub GET_hello { |
7
|
0
|
|
|
0
|
0
|
|
my ( $self, $this_req ) = @_; |
8
|
0
|
|
|
|
|
|
return [ 200, [], 'Hello world!' ]; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
1; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
__END__ |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
=head1 NAME |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
Async::Microservice::HelloWorld - synopsis example of async microservice |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 DESCRIPTION |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
See L<Async::Microservice> and L<Async::Microservice::Time> |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |