| 1 | package RPC::Serialized::Config; | ||
| 2 | { | ||
| 3 | 26 | $RPC::Serialized::Config::VERSION = '1.123630'; | |
| 4 | } | ||
| 5 | |||
| 6 | 26 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 26 | ▶ | use warnings FATAL => 'all'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 26 | ▶ | use Module::MultiConf; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | |||
| 11 | __PACKAGE__->Validate({ | ||
| 12 | log_dispatch_syslog => { | ||
| 13 | name => { type => SCALAR, default => 'rpc-serialized' }, | ||
| 14 | min_level => { type => SCALAR, default => 'info' }, | ||
| 15 | facility => { type => SCALAR, default => 'local0' }, | ||
| 16 | callbacks => { type => CODEREF | ARRAYREF, | ||
| 17 | 0 | ▶ | default => sub { return "$_[1]\n" } }, |
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||
| 18 | }, | ||
| 19 | 26 | rpc_serialized => { | |
| 20 | server_class => { type => SCALAR, optional => 1 }, | ||
| 21 | handlers => { type => HASHREF, optional => 1 }, | ||
| 22 | callbacks => { type => HASHREF, default => {} }, | ||
| 23 | handler_namespaces => { type => SCALAR | ARRAYREF, | ||
| 24 | default => 'RPC::Serialized::Handler'}, | ||
| 25 | acl_path => { type => SCALAR, optional => 1}, | ||
| 26 | debug => { type => SCALAR, default => 0 }, | ||
| 27 | trace => { type => SCALAR, default => 0 }, | ||
| 28 | timeout => { type => SCALAR, default => 30 }, | ||
| 29 | args_suppress_log => { type => HASHREF, default => {} }, | ||
| 30 | }, | ||
| 31 | net_server => { | ||
| 32 | log_level => { type => SCALAR, default => 4 }, | ||
| 33 | log_file => { type => SCALAR | UNDEF, default => undef }, | ||
| 34 | syslog_facility => { type => SCALAR, default => 'local1' }, | ||
| 35 | background => { type => SCALAR | UNDEF, default => undef }, | ||
| 36 | setsid => { type => SCALAR | UNDEF, default => undef }, | ||
| 37 | }, | ||
| 38 | }); | ||
| 39 | |||
| 40 | 26 | __PACKAGE__->Force({ | |
| 41 | data_serializer => { | ||
| 42 | portable => 1, | ||
| 43 | }, | ||
| 44 | net_server => { | ||
| 45 | no_client_stdout => undef, | ||
| 46 | no_close_by_child => 1, | ||
| 47 | }, | ||
| 48 | }); | ||
| 49 | |||
| 50 | 26 | 1; | |
| 51 | |||