| 1 | package Async::Microservice::HelloWorld; | ||
| 2 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | with qw(Async::Microservice); | |
| 4 | 0 | ▶ | sub service_name { return 'asmi-helloworld'; } |
|
Subroutine
service_name: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 5 | |||
| 6 | 0 | ▶ | sub get_routes { |
|
Subroutine
get_routes: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 7 | 0 | return ( 'hello' => { defaults => { GET => 'GET_hello' } } ); | |
| 8 | } | ||
| 9 | |||
| 10 | 0 | ▶ | sub GET_hello { |
|
Subroutine
GET_hello: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 11 | 0 | my ( $self, $this_req ) = @_; | |
| 12 | 0 | return [ 200, [], 'Hello world!' ]; | |
| 13 | } | ||
| 14 | |||
| 15 | 1 | __PACKAGE__->meta->make_immutable; | |
| 16 | 1 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 1 | 1; | |
| 18 | |||
| 19 | __END__ | ||