File Coverage

blib/lib/RPC/Serialized/Config.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package RPC::Serialized::Config;
2             {
3             $RPC::Serialized::Config::VERSION = '1.123630';
4             }
5              
6 26     26   151 use strict;
  26         53  
  26         1064  
7 26     26   159 use warnings FATAL => 'all';
  26         52  
  26         1081  
8              
9 26     26   32339 use Module::MultiConf;
  26         798569  
  26         178  
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             default => sub { return "$_[1]\n" } },
18             },
19             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             __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             1;
51